From dd44b6d96dde6069439a7953e99624ca6e7b5d0d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 1 Oct 2013 22:58:41 +0800 Subject: [PATCH] Modules/UDI - Added definition of NULL --- KernelLand/Modules/Interfaces/UDI/include/udi.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/KernelLand/Modules/Interfaces/UDI/include/udi.h b/KernelLand/Modules/Interfaces/UDI/include/udi.h index 7eabc855..0e097d75 100644 --- a/KernelLand/Modules/Interfaces/UDI/include/udi.h +++ b/KernelLand/Modules/Interfaces/UDI/include/udi.h @@ -14,6 +14,10 @@ typedef uint8_t udi_ubit8_t; /* unsigned 8-bit: 0..28-1 */ typedef uint16_t udi_ubit16_t; /* unsigned 16-bit: 0..216-1 */ typedef uint32_t udi_ubit32_t; /* unsigned 32-bit: 0..232-1 */ +#ifndef NULL +# define NULL ((void*)0) +#endif + #if UDI_ABI_is_ia32 #include "udi/arch/x86.h" #else -- 2.20.1