Browse Source

core: fix build

Daniele Bartolini 7 years ago
parent
commit
57b0e8dba6
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/core/types.h

+ 1 - 4
src/core/types.h

@@ -7,6 +7,7 @@
 
 #include "core/platform.h"
 #include <stdint.h>
+#include <stddef.h>
 
 #ifndef CROWN_DEBUG
 	#define CROWN_DEBUG 0
@@ -74,10 +75,6 @@ inline T clamp(T val, T mmin, T mmax)
 	#define __va_copy(dest, src) (dest = src)
 #endif
 
-#ifndef NULL
-	#define NULL 0
-#endif
-
 #define countof(arr) (sizeof(arr)/sizeof(arr[0]))
 #define container_of(ptr, type, member) ((char*)ptr - offsetof(type, member))