summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-29 21:13:36 +0200
committerMartin Mares <mj@ucw.cz>1999-03-29 21:13:36 +0200
commit6134024815adf2541293008f848dce4e8a21d061 (patch)
treeabc12af389780474729c6d1354ec6607086f14bd /lib
parent7f400d1c620e80461e61384c7d0b8893edb92695 (diff)
downloadbird-6134024815adf2541293008f848dce4e8a21d061.tar
bird-6134024815adf2541293008f848dce4e8a21d061.zip
#define NULL if not defined by system includes.
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h4
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))