aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--softfloat/softfloat.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/softfloat/softfloat.h b/softfloat/softfloat.h
index 09d7235..81d63f3 100644
--- a/softfloat/softfloat.h
+++ b/softfloat/softfloat.h
@@ -50,8 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdint.h>
#include "softfloat_types.h"
-#if __has_include(<threads.h>)
-# include <threads.h>
+#if defined(__cplusplus) && !defined(__APPLE__)
# define THREAD_LOCAL thread_local
#else
# define THREAD_LOCAL _Thread_local