From 29da1405c43ff6f2b6c4f7f8ea41ec59810a4e55 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 21 Jun 2024 16:34:25 -0700 Subject: Fix C/C++ thread-local linkage differently Just admit Mac OS is broken, so explicitly special-case it. See #1689 and #1703 --- softfloat/softfloat.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/softfloat/softfloat.h b/softfloat/softfloat.h index 72daccb..8f533c8 100644 --- a/softfloat/softfloat.h +++ b/softfloat/softfloat.h @@ -50,8 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "softfloat_types.h" -#if __has_include() -# include +#if defined(__cplusplus) && !defined(__APPLE__) # define THREAD_LOCAL thread_local #else # define THREAD_LOCAL _Thread_local -- cgit v1.1