We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71ced06 + 46bc1fc commit f693864Copy full SHA for f693864
numpy/f2py/cfuncs.py
@@ -545,7 +545,9 @@
545
"""
546
cppmacros["F2PY_THREAD_LOCAL_DECL"] = """\
547
#ifndef F2PY_THREAD_LOCAL_DECL
548
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) \\
549
+ || defined(_WIN32) || defined(_WIN64) \\
550
+ || defined(__MINGW32__) || defined(__MINGW64__)
551
#define F2PY_THREAD_LOCAL_DECL __declspec(thread)
552
#elif defined(__STDC_VERSION__) \\
553
&& (__STDC_VERSION__ >= 201112L) \\
0 commit comments