]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Protect config.h include.
authorSimon Josefsson <simon@josefsson.org>
Fri, 12 Aug 2005 11:00:13 +0000 (11:00 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 12 Aug 2005 11:00:13 +0000 (11:00 +0000)
Assume C89 platform.

lib/defines.h

index f071cee56fc867a7de3374a10335f0b8d00dcfb2..21cedc0fbfa2045b27dd6cebb1166845d22beb83 100644 (file)
 #ifndef DEFINES_H
 # define DEFINES_H
 
-#include <config.h>
-
-#ifdef STDC_HEADERS
-# include <string.h>
-# include <stdlib.h>
-# include <stdio.h>
-# include <ctype.h>
+#if HAVE_CONFIG_H
+# include <config.h>
 #endif
 
+#include <stddef.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <ctype.h>
+
 #ifdef NO_SSIZE_T
 # define HAVE_SSIZE_T
 typedef int ssize_t;
@@ -43,12 +44,6 @@ typedef int ssize_t;
 # include <strings.h>
 #endif
 
-#include <memmem.h>
-
-#ifdef HAVE_STDDEF_H
-# include <stddef.h>
-#endif
-
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
@@ -76,6 +71,8 @@ typedef int ssize_t;
 # include <sys/socket.h>
 #endif
 
+#include "memmem.h"
+
 #ifndef HAVE_UINT
 typedef unsigned int uint;
 typedef signed int sint;