From b89b58e00a13e8f1fe44eef09d52f51427aa6ecc Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 2 Feb 2006 05:37:56 -0800 Subject: [PATCH] [svn] Obtain the declaration of uintptr_t when standalone. --- src/ChangeLog | 2 ++ src/hash.c | 5 +++++ 2 files changed, 7 insertions(+) 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" -- 2.39.2