From 9c1a4fa68ea5cfbde7f50ecfa7f3ee7cd92c9d6e Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 5 Sep 2013 19:03:14 +0200 Subject: [PATCH] gcc/clang OS X does not know about __thread This needs a proper implementation --- src/std/c_private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/std/c_private.h b/src/std/c_private.h index b3c5bcd4eb..d89e1460a6 100644 --- a/src/std/c_private.h +++ b/src/std/c_private.h @@ -140,7 +140,8 @@ int c_setup_iconv(const char* to); int c_close_iconv(void); #endif -#if defined(__GNUC__) +/* FIXME: Implement TLS for OS X */ +#if defined(__GNUC__) && !defined(__APPLE__) # define CSYNC_THREAD __thread #elif defined(_MSC_VER) # define CSYNC_THREAD __declspec(thread)