From b86834423f856aecf733ddc8c8c1fb1d075f8e6e Mon Sep 17 00:00:00 2001 From: Du Huanpeng Date: Wed, 13 Apr 2016 16:04:01 +0000 Subject: NULL: keep NULL definition in stddef.h only remove other local definition of NULL, use #include instead. I use this command to search NULL definition, grep -R "define\s*\" hope there are no more definition of NULL. from ISO/IEC 9899:TC3: The macros are NULL which expands to an implementation-defined null pointer constant; Signed-off-by: Du Huanpeng Signed-off-by: Sascha Hauer --- lib/bzlib_private.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/bzlib_private.h') diff --git a/lib/bzlib_private.h b/lib/bzlib_private.h index 87d8f94525..de10dd4215 100644 --- a/lib/bzlib_private.h +++ b/lib/bzlib_private.h @@ -67,6 +67,7 @@ #define _BZLIB_PRIVATE_H #include +#include #include "bzlib.h" @@ -515,16 +516,6 @@ BZ2_hbCreateDecodeTables ( Int32*, Int32*, Int32*, UChar*, #endif - -/*-- BZ_NO_STDIO seems to make NULL disappear on some platforms. --*/ - -#ifdef BZ_NO_STDIO -#ifndef NULL -#define NULL 0 -#endif -#endif - - /*-------------------------------------------------------------*/ /*--- end bzlib_private.h ---*/ /*-------------------------------------------------------------*/ -- cgit v1.2.3