From bcd24af19ce79eff2343cb9a9165c96e24acbfa2 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Wed, 9 May 2012 22:23:39 +0900 Subject: temporal VC patch from nkshigeru --- src/encoding.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/encoding.c') diff --git a/src/encoding.c b/src/encoding.c index 54cf290c2..ea350e497 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -1348,7 +1348,11 @@ set_default_internal(mrb_state *mrb, mrb_value klass) } #define digit(x) ((x) >= '0' && (x) <= '9') +#ifndef _MSC_VER #define strstart(s, n) (strncasecmp(s, n, strlen(n)) == 0) +#else +#define strstart(s, n) (_stricmp(s, n) == 0) +#endif #define C_CODESET "US-ASCII" /* Return this as the encoding of the * C/POSIX locale. Could as well one day * become "UTF-8". */ -- cgit v1.2.3