[airborne] std.h: define NULL if not already done

This commit is contained in:
Felix Ruess
2013-03-01 18:28:20 +01:00
parent 8d22a6465c
commit b37d956cff
+8
View File
@@ -61,6 +61,14 @@
#define TRUE (!FALSE) #define TRUE (!FALSE)
#endif #endif
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
/* Boolean values */ /* Boolean values */
typedef uint8_t bool_t; typedef uint8_t bool_t;