mirror of https://github.com/flysand7/ciabatta.git
remove win32 declspec thread
This commit is contained in:
parent
bfaa80c628
commit
7582b91334
|
@ -1,12 +1,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined (_MSC_VER)
|
|
||||||
#define _Thread_local __declspec(thread)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define EDOM 1
|
#define EDOM 1
|
||||||
#define EILSEQ 2
|
#define EILSEQ 2
|
||||||
#define ERANGE 3
|
#define ERANGE 3
|
||||||
|
|
||||||
|
// TODO: figure out why _Thread_local doesn't work
|
||||||
extern _Thread_local int errno;
|
extern _Thread_local int errno;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#define FLT_HAS_SUBNORM 1
|
#define FLT_HAS_SUBNORM 1
|
||||||
|
|
||||||
#define DBL_DECIMAL_DIG 10
|
#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_MAX 0x1.fffffffffffffp+1023
|
||||||
#define DBL_TRUE_MIN 0x1.0000000000000p-1074
|
#define DBL_TRUE_MIN 0x1.0000000000000p-1074
|
||||||
#define DBL_EPSILON 0x1.0000000000001p+0
|
#define DBL_EPSILON 0x1.0000000000001p+0
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
#define _Thread_local __declspec(thread)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define thread_local _Thread_local
|
#define thread_local _Thread_local
|
||||||
|
|
||||||
#define ONCE_FLAG_INIT 1
|
#define ONCE_FLAG_INIT 1
|
||||||
|
|
Loading…
Reference in New Issue