Skip to content

Commit f693864

Browse files
authored
Merge pull request numpy#18910 from dongkeun-oh/fix_thread
BUG : for MINGW, threads.h existence test requires GLIBC > 2.12
2 parents 71ced06 + 46bc1fc commit f693864

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numpy/f2py/cfuncs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@
545545
"""
546546
cppmacros["F2PY_THREAD_LOCAL_DECL"] = """\
547547
#ifndef F2PY_THREAD_LOCAL_DECL
548-
#if defined(_MSC_VER)
548+
#if defined(_MSC_VER) \\
549+
|| defined(_WIN32) || defined(_WIN64) \\
550+
|| defined(__MINGW32__) || defined(__MINGW64__)
549551
#define F2PY_THREAD_LOCAL_DECL __declspec(thread)
550552
#elif defined(__STDC_VERSION__) \\
551553
&& (__STDC_VERSION__ >= 201112L) \\

0 commit comments

Comments
 (0)