diff options
author | Andrew Waterman <andrew@sifive.com> | 2024-06-21 17:23:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 17:23:41 -0700 |
commit | 3d4027a2bb559af758a2a9d624a3848ae2485453 (patch) | |
tree | 1dec2768444a63ad844abaf4968669c2934de1d0 | |
parent | 6fb43620960bc5d9747e1c73c6629dc3c638dfce (diff) | |
parent | 29da1405c43ff6f2b6c4f7f8ea41ec59810a4e55 (diff) | |
download | spike-3d4027a2bb559af758a2a9d624a3848ae2485453.zip spike-3d4027a2bb559af758a2a9d624a3848ae2485453.tar.gz spike-3d4027a2bb559af758a2a9d624a3848ae2485453.tar.bz2 |
Merge pull request #1704 from riscv-software-src/thread-local-again
Fix C/C++ thread-local linkage differently
-rw-r--r-- | softfloat/softfloat.h | 3 |
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 |