From: John Hodge Date: Tue, 1 Oct 2013 14:58:41 +0000 (+0800) Subject: Modules/UDI - Added definition of NULL X-Git-Tag: rel0.15~153 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=dd44b6d96dde6069439a7953e99624ca6e7b5d0d;p=tpg%2Facess2.git Modules/UDI - Added definition of NULL --- 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