Modules/UDI - Added definition of NULL
authorJohn Hodge <[email protected]>
Tue, 1 Oct 2013 14:58:41 +0000 (22:58 +0800)
committerJohn Hodge <[email protected]>
Tue, 1 Oct 2013 14:58:41 +0000 (22:58 +0800)
KernelLand/Modules/Interfaces/UDI/include/udi.h

index 7eabc85..0e097d7 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au