]> sjero.net Git - wget/blobdiff - src/hash.c
[svn] Fixed definition of TOLOWER when STANDALONE.
[wget] / src / hash.c
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