From: Martin Mares Date: Mon, 29 Mar 1999 19:13:36 +0000 (+0000) Subject: #define NULL if not defined by system includes. X-Git-Tag: v1.2.0~1645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6134024815adf2541293008f848dce4e8a21d061;p=thirdparty%2Fbird.git #define NULL if not defined by system includes. --- diff --git a/lib/birdlib.h b/lib/birdlib.h index 545ee1b5f..b57478df2 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))