diff --git a/softfloat/softfloat.h b/softfloat/softfloat.h index eb78d74d..72daccb1 100644 --- a/softfloat/softfloat.h +++ b/softfloat/softfloat.h @@ -50,8 +50,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "softfloat_types.h" -#ifndef THREAD_LOCAL -#define THREAD_LOCAL +#if __has_include() +# include +# define THREAD_LOCAL thread_local +#else +# define THREAD_LOCAL _Thread_local #endif #ifdef __cplusplus