]> sjero.net Git - wget/commitdiff
[svn] Fixed definition of TOLOWER when STANDALONE.
authorhniksic <devnull@localhost>
Mon, 6 Mar 2006 14:00:18 +0000 (06:00 -0800)
committerhniksic <devnull@localhost>
Mon, 6 Mar 2006 14:00:18 +0000 (06:00 -0800)
src/ChangeLog
src/hash.c

index 8190d5089c5e26357470acb9c168d71acfc5d039..35df03755ba8c4644856f439ca89aaa79561572e 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * hash.c (TOLOWER): Fix definition when STANDALONE.
+       Reported by Beni Serfaty.
+
 2006-03-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * http.c (http_loop): Fixed recursive HTTP retrieval.
index 46bd23570a18397fe4fb852d409df3273fa8b570..f3b4be100216a914adb6ef340a6c1dc0a488c94f 100644 (file)
@@ -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 <ctype.h>
+# define TOLOWER(x) tolower ((unsigned char) x)
 # if __STDC_VERSION__ >= 199901L
 #  include <stdint.h>  /* for uintptr_t */
 # else