diff options
author | Martin Mares <mj@ucw.cz> | 1999-03-29 21:13:36 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-03-29 21:13:36 +0200 |
commit | 6134024815adf2541293008f848dce4e8a21d061 (patch) | |
tree | abc12af389780474729c6d1354ec6607086f14bd /lib | |
parent | 7f400d1c620e80461e61384c7d0b8893edb92695 (diff) | |
download | bird-6134024815adf2541293008f848dce4e8a21d061.tar bird-6134024815adf2541293008f848dce4e8a21d061.zip |
#define NULL if not defined by system includes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/birdlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 545ee1b..b57478d 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -20,6 +20,10 @@ #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) +#ifndef NULL +#define NULL ((void *) 0) +#endif + /* Functions which don't return */ #define NORET __attribute__((noreturn)) |