summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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))