diff options
author | Dong Keun Oh <spinhalf@nfri.re.kr> | 2021-05-05 15:26:35 +0900 |
---|---|---|
committer | Dong Keun Oh <spinhalf@nfri.re.kr> | 2021-05-05 15:26:35 +0900 |
commit | 46bc1fc554b6560142ed11ab49ad5a380699a243 (patch) | |
tree | eb2e47b6dfe8c13549a5636f17fc2b072477add5 /numpy | |
parent | a0f46219d3279b8347c0ccd3a87e719bc3d579d2 (diff) | |
download | numpy-46bc1fc554b6560142ed11ab49ad5a380699a243.tar.gz |
BUG FIX for MINGW : threads.h existence test requires GLIBC > 2.12
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/f2py/cfuncs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 974062f26..f403a66b5 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -545,7 +545,9 @@ cppmacros['OLDPYNUM'] = """\ """ cppmacros["F2PY_THREAD_LOCAL_DECL"] = """\ #ifndef F2PY_THREAD_LOCAL_DECL -#if defined(_MSC_VER) +#if defined(_MSC_VER) \\ + || defined(_WIN32) || defined(_WIN64) \\ + || defined(__MINGW32__) || defined(__MINGW64__) #define F2PY_THREAD_LOCAL_DECL __declspec(thread) #elif defined(__STDC_VERSION__) \\ && (__STDC_VERSION__ >= 201112L) \\ |