diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-02 12:02:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-12-02 12:02:38 +0900 |
| commit | 64d1d104928336dc0cd9c67321617fa455ccac62 (patch) | |
| tree | 80ff2c664a7fcfc5c65b0898a4e1edc32213c8b4 /include/mruby.h | |
| parent | 260cad689ae3b9f979d602052592331ca011dd92 (diff) | |
| parent | f6d15cfc38b7995c6b1e5c1505b46075a46842b2 (diff) | |
| download | mruby-64d1d104928336dc0cd9c67321617fa455ccac62.tar.gz mruby-64d1d104928336dc0cd9c67321617fa455ccac62.zip | |
Merge pull request #2660 from cremno/fix-isblank-for-visual-studio-versions-older-than-2013
fix ISBLANK() for Visual Studio < 2013
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index 5b8d08b5b..68b0c5b79 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -359,7 +359,7 @@ MRB_API mrb_value mrb_obj_clone(mrb_state *mrb, mrb_value self); #define ISALPHA(c) (ISASCII(c) && isalpha((int)(unsigned char)(c))) #define ISDIGIT(c) (ISASCII(c) && isdigit((int)(unsigned char)(c))) #define ISXDIGIT(c) (ISASCII(c) && isxdigit((int)(unsigned char)(c))) -#define ISBLANK(c) (ISASCII(c) && isblank((int)(unsigned char)(c))) +#define ISBLANK(c) (ISASCII(c) && ((c) == ' ' || (c) == '\t')) #define ISCNTRL(c) (ISASCII(c) && iscntrl((int)(unsigned char)(c))) #define TOUPPER(c) (ISASCII(c) ? toupper((int)(unsigned char)(c)) : (c)) #define TOLOWER(c) (ISASCII(c) ? tolower((int)(unsigned char)(c)) : (c)) |
