X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fportab%2Fportab.h;h=53345bb7554bd18111fa6f1d412eca8e80e7ae1e;hp=3de168e37cb5879f8fda2c381ad424476dc23964;hb=f7327524fce6a7db28850c8b8b8f0e99d0b2402b;hpb=0fb57ecffc808aaadd918b95c3e35dce26682269 diff --git a/src/portab/portab.h b/src/portab/portab.h index 3de168e3..53345bb7 100644 --- a/src/portab/portab.h +++ b/src/portab/portab.h @@ -9,7 +9,7 @@ * 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.5 2002/05/19 10:49:23 alex Exp $ + * $Id: portab.h,v 1.6 2002/05/27 13:01:58 alex Exp $ * * portab.h: "Portabilitaets-Definitionen" */ @@ -22,6 +22,18 @@ #include "config.h" +/* Compiler Features */ + + +#ifndef PARAMS +# if PROTOTYPES +# define PARAMS(args) args +# else +# define PARAMS(args) () +# endif +#endif + + /* Keywords */ #define EXTERN extern @@ -32,6 +44,12 @@ /* Datatentypen */ +#ifndef PROTOTYPES +# ifndef signed +# define signed +# endif +#endif + typedef void VOID; typedef void POINTER; @@ -57,7 +75,11 @@ typedef UINT8 BOOLEAN; #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