]> granicus.if.org Git - graphviz/commitdiff
Remove definition and usage of HAVE_STDDEF_H
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 11 Dec 2016 00:49:39 +0000 (01:49 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Dec 2016 13:54:25 +0000 (14:54 +0100)
The header <stddef.h> is part of the standard C library and is always available,
checking is therefore not needed.

configure.ac
lib/common/render.h
windows/include/config.h

index 3a0ec0109ab69550885b903ddeee618e9dc11316..e5c203188763c36389247c628941a1e650837951 100644 (file)
@@ -425,7 +425,7 @@ dnl -----------------------------------
 dnl Checks for header files
 
 # AC_HEADER_STDC
-AC_CHECK_HEADERS(stddef.h stddef.h malloc.h \
+AC_CHECK_HEADERS(malloc.h \
        fcntl.h search.h pthread.h values.h float.h limits.h termios.h \
        errno.h time.h unistd.h strings.h setjmp.h \
        sys/time.h sys/times.h sys/types.h sys/select.h \
index 1b31e5d46f1c3a882d861acb76fa7bddc45e46e0..61f40010b15ea5437e940944a773389f87d8f05d 100644 (file)
@@ -29,9 +29,7 @@ extern "C" {
 #else
 #include <stdlib.h>
 #endif
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
 #ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
index 5a3f1d5d2340b0b789eb402f9701c15a7a77f19a..412aeb171780efc03bc0537864b2e14198161911 100644 (file)
 /* Define to 1 if stdbool.h conforms to C99. */
 //#define HAVE_STDBOOL_H 1
 
-/* Define to 1 if you have the <stddef.h> header file. */
-#define HAVE_STDDEF_H 1
-
 /* Define to 1 if you have the `strcasecmp' function. */
 //#define HAVE_STRCASECMP 1