diff --git a/src/ChangeLog b/src/ChangeLog index 8190d508..35df0375 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-03-06 Hrvoje Niksic + + * hash.c (TOLOWER): Fix definition when STANDALONE. + Reported by Beni Serfaty. + 2006-03-02 Mauro Tortonesi * http.c (http_loop): Fixed recursive HTTP retrieval. diff --git a/src/hash.c b/src/hash.c index 46bd2357..f3b4be10 100644 --- a/src/hash.c +++ b/src/hash.c @@ -53,7 +53,8 @@ so, delete this exception statement from your version. */ # ifndef countof # define countof(x) (sizeof (x) / sizeof ((x)[0])) # endif -# define TOLOWER(x) ('A' <= (x) && (x) <= 'Z' ? (x) - 32 : (x)) +# include +# define TOLOWER(x) tolower ((unsigned char) x) # if __STDC_VERSION__ >= 199901L # include /* for uintptr_t */ # else