Skip to content

Commit 29da140

Browse files
committed
Fix C/C++ thread-local linkage differently
Just admit Mac OS is broken, so explicitly special-case it. See #1689 and #1703
1 parent 2d7af2f commit 29da140

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

softfloat/softfloat.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5050
#include <stdint.h>
5151
#include "softfloat_types.h"
5252

53-
#if __has_include(<threads.h>)
54-
# include <threads.h>
53+
#if defined(__cplusplus) && !defined(__APPLE__)
5554
# define THREAD_LOCAL thread_local
5655
#else
5756
# define THREAD_LOCAL _Thread_local

0 commit comments

Comments
 (0)