diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-09 22:23:39 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-09 22:23:39 +0900 |
| commit | bcd24af19ce79eff2343cb9a9165c96e24acbfa2 (patch) | |
| tree | 35fcb48d294fce6ac81c5336bb0d4c8fda3799d1 /src/encoding.c | |
| parent | 6faab394d721011080355b1d0fa14d925a2a7734 (diff) | |
| download | mruby-bcd24af19ce79eff2343cb9a9165c96e24acbfa2.tar.gz mruby-bcd24af19ce79eff2343cb9a9165c96e24acbfa2.zip | |
temporal VC patch from nkshigeru
Diffstat (limited to 'src/encoding.c')
| -rw-r--r-- | src/encoding.c | 4 |
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". */ |
