]> sjero.net Git - wget/commitdiff
stdint.h adjustments for Interix, thanks Markus Duft <mduft@gentoo.org>.
authorMicah Cowan <micah@cowan.name>
Fri, 24 Apr 2009 17:00:48 +0000 (10:00 -0700)
committerMicah Cowan <micah@cowan.name>
Fri, 24 Apr 2009 17:00:48 +0000 (10:00 -0700)
src/ChangeLog
src/connect.c
src/hash.c

index 28cb6640acbffd0a9c364a4a4707392338a592fa..5039f49e9ff2d1d2439128033b62ed92f2dd89c0 100644 (file)
@@ -1,3 +1,12 @@
+2009-04-24  Micah Cowan  <micah@cowan.name>
+
+       * hash.c: Change stdint.h inclusion to use HAVE_STDINT_H, not C99
+       check.
+
+       * connect.c: stdint.h inclusion added.
+
+       Thanks to Markus Duft <mduft@gentoo.org> for a similar patch.
+       
 2009-04-20  Micah Cowan  <micah@cowan.name>
 
        * Makefile.am (version.c): Fix unportable use of "echo -n".
index 1e8f07e5fcd98755ac8b5f78d763192b249c3434..f46f11c44461017a2dce3549622268f7fc0fea70 100644 (file)
@@ -59,6 +59,11 @@ as that of the covered work.  */
 #include "connect.h"
 #include "hash.h"
 
+/* Apparently needed for Interix: */
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
 /* Define sockaddr_storage where unavailable (presumably on IPv4-only
    hosts).  */
 
index 1e19fd63dc234283ce105d0e3e68b891a4ea303b..80922d0faebc726cc975e57d5d5f068789885be0 100644 (file)
@@ -55,8 +55,8 @@ as that of the covered work.  */
 # endif
 # include <ctype.h>
 # define c_tolower(x) tolower ((unsigned char) (x))
-# if __STDC_VERSION__ >= 199901L
-#  include <stdint.h>  /* for uintptr_t */
+# ifdef HAVE_STDINT_H
+#  include <stdint.h>
 # else
    typedef unsigned long uintptr_t;
 # endif