From 8bad5bfae5ef53131983951bc8bbbc1fdf4bea1a Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Tue, 23 Jun 2020 15:53:01 +0200 Subject: [PATCH] macos: internally define _DONT_USE_CTYPE_INLINE_ otherwise, ctype.h macros may be defined multiple times in different translation units. --- libtcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtcc.c b/libtcc.c index 850a7487..432b301d 100644 --- a/libtcc.c +++ b/libtcc.c @@ -947,6 +947,7 @@ LIBTCCAPI TCCState *tcc_new(void) tcc_define_symbol(s, "__APPLE__", "1"); tcc_define_symbol(s, "__GNUC__", "4"); /* darwin emits warning on GCC<4 */ tcc_define_symbol(s, "__APPLE_CC__", "1"); /* for */ + tcc_define_symbol(s, "_DONT_USE_CTYPE_INLINE_", "1"); tcc_define_symbol(s, "__builtin_alloca", "alloca"); /* as we claim GNUC */ /* used by math.h */ tcc_define_symbol(s, "__builtin_huge_val()", "1e500");