diff --git a/src/ChangeLog b/src/ChangeLog index 3a84779f..43684209 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 * http.c: Changed output format. Removed excessively verbose debugging diff --git a/src/hash.c b/src/hash.c index 64451712..46bd2357 100644 --- a/src/hash.c +++ b/src/hash.c @@ -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 /* for uintptr_t */ +# else + typedef unsigned long uintptr_t; +# endif #endif #include "hash.h"