gcc/clang OS X does not know about __thread

This needs a proper implementation
This commit is contained in:
Daniel Molkentin 2013-09-05 19:03:14 +02:00
parent 83cdece0b4
commit 9c1a4fa68e

View File

@ -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)