Skip to content

Commit 3d4027a

Browse files
authored
Merge pull request #1704 from riscv-software-src/thread-local-again
Fix C/C++ thread-local linkage differently
2 parents 6fb4362 + 29da140 commit 3d4027a

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)