map strcasecmp() to _stricmp() for Windows.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 2 Jan 2009 19:37:17 +0000 (19:37 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 2 Jan 2009 19:37:17 +0000 (19:37 +0000)
[r25066]

lexer.c
win32/config.h.win32

diff --git a/lexer.c b/lexer.c
index aa2cc12..aedfdd1 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -50,8 +50,7 @@
 
 #if defined(_WIN32) || defined(__CYGWIN__)
 /* No strtold on windows and no replacement yet */
-#define strtold(s, e)     strtod(s, e)
-#define strcasecmp(a, b)  stricmp(a, b)
+#define strtold(s, e) strtod(s, e)
 #endif
 
 typedef unsigned int utf32;
index c2c0d21..cca7b3c 100644 (file)
@@ -19,6 +19,6 @@
  */
 
 #define __attribute__(x)
-#define snprintf _snprintf
-#define vsnprintf _vsnprintf
-#define stricmp(x, y) _stricmp(x, y)
+#define snprintf         _snprintf
+#define vsnprintf        _vsnprintf
+#define strcasecmp(x, y) _stricmp(x, y)