From 0622471f7b022fde7b3b5f64e8d58ad7b3dbb0be Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Sat, 11 Jun 2005 04:44:38 +0000 Subject: [PATCH] Move NULL from tool.h into basic_types.h. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3884 --- include/basic_types.h | 3 +++ include/tool.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/basic_types.h b/include/basic_types.h index 6e02b3d03..786c3a284 100644 --- a/include/basic_types.h +++ b/include/basic_types.h @@ -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 diff --git a/include/tool.h b/include/tool.h index 956048298..be561bb61 100644 --- a/include/tool.h +++ b/include/tool.h @@ -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 */