From 46bc1fc554b6560142ed11ab49ad5a380699a243 Mon Sep 17 00:00:00 2001 From: Dong Keun Oh Date: Wed, 5 May 2021 15:26:35 +0900 Subject: BUG FIX for MINGW : threads.h existence test requires GLIBC > 2.12 --- numpy/f2py/cfuncs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy') 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) \\ -- cgit v1.2.1