From f4c17cb7aa1517739c5aea5155e17fc9d1b2f05e Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 16 May 2012 15:18:44 +0000 Subject: another attempt to port the robust parser to MacOS --- src/runtime/c/gu/utf8.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/gu/utf8.h') 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 -- cgit v1.2.3