]> granicus.if.org Git - graphviz/commitdiff
Remove definition of _hdr_stddef
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 31 Oct 2016 21:13:58 +0000 (22:13 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 7 Dec 2016 13:52:39 +0000 (14:52 +0100)
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
config.iffe
features/common
lib/sfio/features/common
lib/sfio/sfhdr.h
lib/vmalloc/features/common
windows/include/FEATURE/sfio
windows/include/FEATURE/vmalloc
windows/include/ast_common.h

index db21e8b5b578dd0fad24291acabb0f5c33880939..56eab1138c01cc80e36abc01cdf1c26822ea5e82 100644 (file)
 #  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 <stddef.h>
-#       endif
 #       if defined(_hdr_stdarg)
 #       include <stdarg.h>
 #       endif
index 9a19b23d46ec3b8f9bf9d92dc892db387d92a3d5..7a0a98fb1f812d3a3f29a30f8852375af185ff1e 100644 (file)
@@ -36,7 +36,6 @@ hdr netdb
 hdr search
 hdr stdarg
 hdr stdbool
-hdr stddef
 hdr stdint
 hdr strings
 hdr termios
index 22735a667e90bde18d08d04392dd862136128082..868b4b2a2f676f9451180539c5eda5abe91fc9ff 100644 (file)
@@ -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 <stddef.h>
-       #       endif
        #       if _sys_types
        #       include <sys/types.h>
        #       endif
index 3a6e408279c6a3d350e9335a0b56ff075b6642e4..9c8d8a2fd1230eef907e1021b42622e61e9b7602 100644 (file)
@@ -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 <stddef.h>
-       #       endif
        #       if _sys_types
        #       include <sys/types.h>
        #       endif
index 02d6db375c124194516b2bd40a7964d16214075b..0a109544a0aaa3f796ecbae35f7677bb43b53bc6 100644 (file)
@@ -68,10 +68,7 @@ extern "C" {
 #include       <stdlib.h>
 #include       <string.h>
 #include       <stdint.h>
-
-#if _hdr_stddef
-#include       <stddef.h>
-#endif
+#include       <stddef.h>]
 
 #if _sys_stat
 #include       <sys/stat.h>
index 3a6e408279c6a3d350e9335a0b56ff075b6642e4..9c8d8a2fd1230eef907e1021b42622e61e9b7602 100644 (file)
@@ -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 <stddef.h>
-       #       endif
        #       if _sys_types
        #       include <sys/types.h>
        #       endif
index 6410c82a76c1e2aca96e6ae05b744c6a5dd49f50..39962b8035f8582ea9278ca8b22eadc0f73dd7b7 100644 (file)
@@ -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 <stddef.h> 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) */
index d71d0f1905ffe5dac8ce1a39b6c4796072fbcf6f..9aa620cfb666596a6b6173c0425dc9a1ff1a4773 100644 (file)
@@ -14,9 +14,6 @@
 #undef _sys_stat
 #define _sys_stat      1       /* #include <sys/stat.h> ok */
 
-#undef _hdr_stddef
-#define _hdr_stddef    1       /* #include <stddef.h> ok */
-
 #undef _typ_ssize_t
 #define _typ_ssize_t   1       /* ssize_t is a type */
 
index 29bedfc4ab5e14671316f7da3f8205cba4cc7da8..3d5aca486f06590b483c5e9a1a22e1f7b188164c 100644 (file)
@@ -15,9 +15,6 @@
 #ifndef _AST_COMMON_H
 #define _AST_COMMON_H  1
 
-#undef _hdr_stddef
-#define _hdr_stddef    1       /* #include <stddef.h> ok */
-
 #undef _sys_types
 #define _sys_types     1       /* #include <sys/types.h> ok */
 
@@ -62,9 +59,6 @@
 #endif
 #endif /*_astimport*/
 #ifndef _AST_STD_H
-#      if _hdr_stddef
-#      include <stddef.h>
-#      endif
 #      if _sys_types
 #      include <sys/types.h>
 #      endif