From 2fc7e59e06bc8d56d61832d5efd5bc8fe3e0a9cf Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 6 Mar 2006 06:00:18 -0800 Subject: [PATCH] [svn] Fixed definition of TOLOWER when STANDALONE. --- src/ChangeLog | 5 +++++ src/hash.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.2