summaryrefslogtreecommitdiffhomepage
path: root/src/encoding.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-09 22:23:39 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-09 22:23:39 +0900
commitbcd24af19ce79eff2343cb9a9165c96e24acbfa2 (patch)
tree35fcb48d294fce6ac81c5336bb0d4c8fda3799d1 /src/encoding.c
parent6faab394d721011080355b1d0fa14d925a2a7734 (diff)
downloadmruby-bcd24af19ce79eff2343cb9a9165c96e24acbfa2.tar.gz
mruby-bcd24af19ce79eff2343cb9a9165c96e24acbfa2.zip
temporal VC patch from nkshigeru
Diffstat (limited to 'src/encoding.c')
-rw-r--r--src/encoding.c4
1 files changed, 4 insertions, 0 deletions
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". */