Replace isupper with a macro in msvc

This commit is contained in:
h2so5
2013-06-09 22:59:23 +09:00
parent e4c9af6e95
commit f8df722e92
+4
View File
@@ -42,6 +42,10 @@ static void backref_error(parser_state *p, node *n);
#define isascii(c) (((c) & ~0x7f) == 0)
#endif
#ifdef _MSC_VER
#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
#endif
#define identchar(c) (isalnum(c) || (c) == '_' || !isascii(c))
typedef unsigned int stack_type;