Commit 61340248 authored by Martin Mares's avatar Martin Mares
Browse files

#define NULL if not defined by system includes.

parent 7f400d1c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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))