- Win32 has no strings.h
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Dec 2008 23:18:57 +0000 (23:18 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Dec 2008 23:18:57 +0000 (23:18 +0000)
[r24763]

lexer.c

diff --git a/lexer.c b/lexer.c
index b90edcd..4efc5bb 100644 (file)
--- a/lexer.c
+++ b/lexer.c
 #include <assert.h>
 #include <errno.h>
 #include <string.h>
-#include <strings.h>
 #include <stdbool.h>
 #include <ctype.h>
 
+#ifndef _WIN32
+#include <strings.h>
+#endif
+
 //#define DEBUG_CHARS
 #define MAX_PUTBACK 3
 #define BUF_SIZE    1024
 
 #if defined(_WIN32) || defined(__CYGWIN__)
 /* No strtold on windows and no replacement yet */
-#define strtold(s, e) strtod(s, e)
+#define strtold(s, e)     strtod(s, e)
+#define strcasecmp(a, b)  stricmp(a, b)
 #endif
 
 typedef unsigned int utf32;