]> sjero.net Git - wget/blobdiff - src/hash.c
[svn] Obtain the declaration of uintptr_t when standalone.
[wget] / src / hash.c
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"