Commit 61340248 authored by Martin Mareš's avatar Martin Mareš
Browse files

#define NULL if not defined by system includes.

parent 7f400d1c
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#define MIN(a,b) (((a)<(b))?(a):(b)) #define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(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 */ /* Functions which don't return */
#define NORET __attribute__((noreturn)) #define NORET __attribute__((noreturn))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment