X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fportab%2Fportab.h;h=63f0cacc67bef45a1fa5f36ed06cafff41bee1bc;hb=dd4535b7f14bef69039efde600f5d2f4540351cd;hp=3de168e37cb5879f8fda2c381ad424476dc23964;hpb=0fb57ecffc808aaadd918b95c3e35dce26682269;p=ngircd-alex.git diff --git a/src/portab/portab.h b/src/portab/portab.h index 3de168e3..63f0cacc 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.7 2002/06/26 15:43:38 alex Exp $ * * portab.h: "Portabilitaets-Definitionen" */ @@ -22,16 +22,35 @@ #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; @@ -57,7 +76,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