]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Move NULL from tool.h into basic_types.h.
authorNicholas Nethercote <njn@valgrind.org>
Sat, 11 Jun 2005 04:44:38 +0000 (04:44 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sat, 11 Jun 2005 04:44:38 +0000 (04:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3884

include/basic_types.h
include/tool.h

index 6e02b3d03c18ca66dc0e6bd1c62c708331047e1b..786c3a284ec9be588c8b78ed18b3a1c7857719e6 100644 (file)
@@ -61,6 +61,9 @@ typedef  Word                   OffT;     // 32             64
 /* This is going to be either 4 or 8. */
 #define VG_WORDSIZE VEX_HOST_WORDSIZE
 
+#if !defined(NULL)
+#  define NULL ((void*)0)
+#endif
 
 /* ---------------------------------------------------------------------
    non-builtin types
index 956048298295bfaa7b58974e2c42b89c1f3884e4..be561bb618a660305e2b0d4d192e825dd726fc7e 100644 (file)
@@ -104,10 +104,6 @@ extern Addr VG_(get_IP) ( ThreadId tid );
 /*=== Valgrind's version of libc                                   ===*/
 /*====================================================================*/
 
-#if !defined(NULL)
-#  define NULL ((void*)0)
-#endif
-
 /* ------------------------------------------------------------------ */
 /* stdlib.h */