Loading...
libkern/c++/OSUnserialize.cpp xnu-3248.50.21 xnu-4903.221.2
--- xnu/xnu-3248.50.21/libkern/c++/OSUnserialize.cpp
+++ xnu/xnu-4903.221.2/libkern/c++/OSUnserialize.cpp
@@ -185,11 +185,7 @@
 
 #define YYSTYPE object_t *
 
-extern "C" {
-extern void *kern_os_malloc(size_t size);
-extern void *kern_os_realloc(void * addr, size_t size);
-extern void kern_os_free(void * addr);
-} /* extern "C" */
+#include <libkern/OSRuntime.h>
 
 #define malloc(s) kern_os_malloc(s)
 #define realloc(a, s) kern_os_realloc(a, s)