* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: portab.h,v 1.1 2002/03/12 14:36:44 alex Exp $
+ * $Id: portab.h,v 1.7 2002/06/26 15:43:38 alex Exp $
*
* portab.h: "Portabilitaets-Definitionen"
*/
#include "config.h"
+/* Compiler Features */
+
+
+#ifndef PARAMS
+# if PROTOTYPES
+# define PARAMS(args) args
+# else
+# define PARAMS(args) ()
+# endif
+#endif
+
+
/* Keywords */
#define EXTERN extern
#define STATIC static
#define LOCAL static
#define CONST const
+#define REGISTER register
/* Datatentypen */
+#ifndef PROTOTYPES
+# ifndef signed
+# define signed
+# endif
+#endif
+
typedef void VOID;
typedef void POINTER;
#define FALSE (BOOLEAN)0
#undef NULL
-#define NULL (VOID *)0
+#ifdef PROTOTYPES
+# define NULL (VOID *)0
+#else
+# define NULL 0L
+#endif
#undef GLOBAL
#define GLOBAL
+/* SPLint */
+
+
+#ifdef S_SPLINT_S
+#include "splint.h"
+#endif
+
+
/* configure-Optionen */
#ifndef HAVE_socklen_t
#define socklen_t int /* u.a. fuer Mac OS X */
#endif
-#ifndef HAVE_INET_ATON
-#define inet_aton( opt, bind ) 0 /* Dummy fuer inet_aton() */
-#endif
-
#if OS_UNIX_AUX
#define _POSIX_SOURCE /* muss unter A/UX definiert sein */
#endif
/* Konstanten */
-#define P_OSNAME "unknown"
-#define P_ARCHNAME "unknown"
+#ifndef TARGET_OS
+#define TARGET_OS "unknown"
+#endif
+
+#ifndef TARGET_CPU
+#define TARGET_CPU "unknown"
+#endif
+
+#ifndef TARGET_VENDOR
+#define TARGET_VENDOR "unknown"
+#endif
#endif