remove win32 declspec thread

This commit is contained in:
bumbread 2022-08-06 10:41:45 +11:00
parent bfaa80c628
commit 7582b91334
4 changed files with 3 additions and 10 deletions

View File

@ -1,12 +1,9 @@
#pragma once
#if defined (_MSC_VER)
#define _Thread_local __declspec(thread)
#endif
#define EDOM 1
#define EILSEQ 2
#define ERANGE 3
// TODO: figure out why _Thread_local doesn't work
extern _Thread_local int errno;

View File

@ -19,7 +19,7 @@
#define FLT_HAS_SUBNORM 1
#define DBL_DECIMAL_DIG 10
#define DBL_MIN 0x1.0000000000000p-1021
#define DBL_MIN 0x1.0000000000000p-1022
#define DBL_MAX 0x1.fffffffffffffp+1023
#define DBL_TRUE_MIN 0x1.0000000000000p-1074
#define DBL_EPSILON 0x1.0000000000001p+0

View File

@ -1,9 +1,5 @@
#pragma once
#if defined(_WIN32)
#define _Thread_local __declspec(thread)
#endif
#define thread_local _Thread_local
#define ONCE_FLAG_INIT 1

View File

@ -1,2 +1,2 @@
clang test\%1 utf8.obj -Iinc -g -lciabatta.lib -nostdlib
clang -std=c11 test\%1 utf8.obj -Iinc -g -lciabatta.lib -nostdlib