Browse Source

Merge pull request #1704 from riscv-software-src/thread-local-again

Fix C/C++ thread-local linkage differently
pull/1705/head
Andrew Waterman 2 years ago
committed by GitHub
parent
commit
3d4027a2bb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      softfloat/softfloat.h

3
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

Loading…
Cancel
Save