]> sjero.net Git - wget/commitdiff
[svn] Obtain the declaration of uintptr_t when standalone.
authorhniksic <devnull@localhost>
Thu, 2 Feb 2006 13:37:56 +0000 (05:37 -0800)
committerhniksic <devnull@localhost>
Thu, 2 Feb 2006 13:37:56 +0000 (05:37 -0800)
src/ChangeLog
src/hash.c

index 3a84779fe1cc19eaf971f6ab0fd03e0c913019e6..43684209fa4385e1f559485edb1f2ce66d9b2f38 100644 (file)
@@ -2,6 +2,8 @@
 
        * hash.c: Don't define countof if it's already defined.
 
+       * hash.c: Obtain the definition of uintptr_t when standalone.
+
 2006-01-30  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * http.c: Changed output format. Removed excessively verbose debugging
index 64451712bb9cefd88c09e3c79a7834b5e45bd6ea..46bd23570a18397fe4fb852d409df3273fa8b570 100644 (file)
@@ -54,6 +54,11 @@ so, delete this exception statement from your version.  */
 #  define countof(x) (sizeof (x) / sizeof ((x)[0]))
 # endif
 # define TOLOWER(x) ('A' <= (x) && (x) <= 'Z' ? (x) - 32 : (x))
+# if __STDC_VERSION__ >= 199901L
+#  include <stdint.h>  /* for uintptr_t */
+# else
+   typedef unsigned long uintptr_t;
+# endif
 #endif
 
 #include "hash.h"