diff --git a/include/util.h b/include/util.h index 76654c39b..ed28b0bba 100644 --- a/include/util.h +++ b/include/util.h @@ -21,6 +21,7 @@ */ #define UL_CONST(x) x #define ULL_CONST(x) x +#define NULL 0 #else /* not __ASSEMBLER__ */ @@ -31,6 +32,7 @@ */ #define UL_CONST(x) PASTE(x, ul) #define ULL_CONST(x) PASTE(x, llu) +#define NULL ((void *)0) #endif /* [not] __ASSEMBLER__ */ @@ -67,8 +69,6 @@ #ifndef __ASSEMBLER__ -#define NULL ((void *)0) - #define PACKED __attribute__((packed)) #define NORETURN __attribute__((__noreturn__)) #define CONST __attribute__((__const__))