File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
quaddtype/numpy_quaddtype/src Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ Modifications are specific to support the SLEEF_QUAD
25
25
#include "dtype.h"
26
26
#include "scalar.h"
27
27
28
-
29
28
#if !defined(HAVE_THREAD_LOCAL ) && !defined(HAVE__THREAD_LOCAL ) && \
30
29
!defined(HAVE___THREAD ) && !defined(HAVE___DECLSPEC_THREAD_ ) && \
31
30
!defined(__cplusplus )
@@ -34,6 +33,20 @@ Modifications are specific to support the SLEEF_QUAD
34
33
#warning "NPY_TLS Thread-local storage support detected."
35
34
#endif
36
35
36
+ #ifdef __cplusplus
37
+ #define NPY_TLS thread_local
38
+ #elif defined(HAVE_THREAD_LOCAL )
39
+ #define NPY_TLS thread_local
40
+ #elif defined(HAVE__THREAD_LOCAL )
41
+ #define NPY_TLS _Thread_local
42
+ #elif defined(HAVE___THREAD )
43
+ #define NPY_TLS __thread
44
+ #elif defined(HAVE___DECLSPEC_THREAD_ )
45
+ #define NPY_TLS __declspec(thread)
46
+ #else
47
+ #define NPY_TLS
48
+ #endif
49
+
37
50
#if 0
38
51
#define DEBUG_ASSERT (stmnt ) assert(stmnt)
39
52
#else
You can’t perform that action at this time.
0 commit comments