summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/utf8.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-05-16 15:18:44 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-05-16 15:18:44 +0000
commitf4c17cb7aa1517739c5aea5155e17fc9d1b2f05e (patch)
treedaf935713c70a871e9131d2d92eb97e7ac7b6aee /src/runtime/c/gu/utf8.h
parent6f328c9040b394054eff399f26d3b7aea6567206 (diff)
another attempt to port the robust parser to MacOS
Diffstat (limited to 'src/runtime/c/gu/utf8.h')
-rw-r--r--src/runtime/c/gu/utf8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/c/gu/utf8.h b/src/runtime/c/gu/utf8.h
index 053d8664e..c4112b5a5 100644
--- a/src/runtime/c/gu/utf8.h
+++ b/src/runtime/c/gu/utf8.h
@@ -21,7 +21,7 @@ gu_in_utf8(GuIn* in, GuExn* err)
inline char
gu_in_utf8_char(GuIn* in, GuExn* err)
{
-#ifdef GU_CHAR_ASCII
+#ifdef CHAR_ASCII
int i = gu_in_peek_u8(in);
if (i >= 0 && i < 0x80) {
gu_in_consume(in, 1);
@@ -55,7 +55,7 @@ gu_utf8_decode(const uint8_t** utf8);
inline void
gu_str_out_utf8(const char* str, GuOut* out, GuExn* err)
{
-#ifdef GU_CHAR_ASCII
+#ifdef CHAR_ASCII
gu_out_bytes(out, (const uint8_t*) str, strlen(str), err);
#else
extern void