From e619c1a2607c439bc0b17dbed7c1d36248f388e1 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Mon, 31 Oct 2016 22:13:58 +0100 Subject: [PATCH] Remove definition of _hdr_stddef The header file `stddef.h` is part of the C standard and should always be available. Checking is therefore not needed. --- ast_common.h.in | 7 ------- config.iffe | 1 - features/common | 4 ---- lib/sfio/features/common | 4 ---- lib/sfio/sfhdr.h | 5 +---- lib/vmalloc/features/common | 4 ---- windows/include/FEATURE/sfio | 1 - windows/include/FEATURE/vmalloc | 3 --- windows/include/ast_common.h | 6 ------ 9 files changed, 1 insertion(+), 34 deletions(-) diff --git a/ast_common.h.in b/ast_common.h.in index db21e8b5b..56eab1138 100644 --- a/ast_common.h.in +++ b/ast_common.h.in @@ -11,10 +11,6 @@ # define _sys_types 1 #endif -#ifdef HAVE_STDDEF_H -# define hdr_stddef 1 -#endif - #ifdef HAVE_SYS_SOCKET_H # define _sys_socket 1 #endif @@ -72,9 +68,6 @@ #endif /*_astimport*/ #ifndef _AST_STD_H -# if defined(_hdr_stddef) -# include -# endif # if defined(_hdr_stdarg) # include # endif diff --git a/config.iffe b/config.iffe index 9a19b23d4..7a0a98fb1 100644 --- a/config.iffe +++ b/config.iffe @@ -36,7 +36,6 @@ hdr netdb hdr search hdr stdarg hdr stdbool -hdr stddef hdr stdint hdr strings hdr termios diff --git a/features/common b/features/common index 22735a667..868b4b2a2 100644 --- a/features/common +++ b/features/common @@ -1,6 +1,5 @@ iff AST_COMMON hdr pthread -hdr stddef hdr types sys types typ size_t,ssize_t @@ -105,9 +104,6 @@ cat{ cat{ #ifndef _AST_STD_H - # if _hdr_stddef - # include - # endif # if _sys_types # include # endif diff --git a/lib/sfio/features/common b/lib/sfio/features/common index 3a6e40827..9c8d8a2fd 100644 --- a/lib/sfio/features/common +++ b/lib/sfio/features/common @@ -1,6 +1,5 @@ iff AST_COMMON hdr pthread -hdr stddef hdr types sys types typ size_t,ssize_t @@ -105,9 +104,6 @@ cat{ cat{ #ifndef _AST_STD_H - # if _hdr_stddef - # include - # endif # if _sys_types # include # endif diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 02d6db375..0a109544a 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -68,10 +68,7 @@ extern "C" { #include #include #include - -#if _hdr_stddef -#include -#endif +#include ] #if _sys_stat #include diff --git a/lib/vmalloc/features/common b/lib/vmalloc/features/common index 3a6e40827..9c8d8a2fd 100644 --- a/lib/vmalloc/features/common +++ b/lib/vmalloc/features/common @@ -1,6 +1,5 @@ iff AST_COMMON hdr pthread -hdr stddef hdr types sys types typ size_t,ssize_t @@ -105,9 +104,6 @@ cat{ cat{ #ifndef _AST_STD_H - # if _hdr_stddef - # include - # endif # if _sys_types # include # endif diff --git a/windows/include/FEATURE/sfio b/windows/include/FEATURE/sfio index 6410c82a7..39962b803 100644 --- a/windows/include/FEATURE/sfio +++ b/windows/include/FEATURE/sfio @@ -7,7 +7,6 @@ #define _lib_atexit 1 /* atexit() in default lib(s) */ #define _lib_ftruncate 0 /* ftruncate() in default lib(s) */ #define _lib_lseek64 1 /* lseek64() in default lib(s) */ -#define _hdr_stddef 1 /* #include ok */ #define _typ_off64_t 1 /* off64_t is a type */ #define _lib_memcpy 1 /* memcpy() in default lib(s) */ #define _lib_memset 1 /* memset() in default lib(s) */ diff --git a/windows/include/FEATURE/vmalloc b/windows/include/FEATURE/vmalloc index d71d0f190..9aa620cfb 100644 --- a/windows/include/FEATURE/vmalloc +++ b/windows/include/FEATURE/vmalloc @@ -14,9 +14,6 @@ #undef _sys_stat #define _sys_stat 1 /* #include ok */ -#undef _hdr_stddef -#define _hdr_stddef 1 /* #include ok */ - #undef _typ_ssize_t #define _typ_ssize_t 1 /* ssize_t is a type */ diff --git a/windows/include/ast_common.h b/windows/include/ast_common.h index 29bedfc4a..3d5aca486 100644 --- a/windows/include/ast_common.h +++ b/windows/include/ast_common.h @@ -15,9 +15,6 @@ #ifndef _AST_COMMON_H #define _AST_COMMON_H 1 -#undef _hdr_stddef -#define _hdr_stddef 1 /* #include ok */ - #undef _sys_types #define _sys_types 1 /* #include ok */ @@ -62,9 +59,6 @@ #endif #endif /*_astimport*/ #ifndef _AST_STD_H -# if _hdr_stddef -# include -# endif # if _sys_types # include # endif -- 2.40.0