diff options
| -rw-r--r-- | numpy/random/src/mt19937/mt19937.h | 2 | ||||
| -rw-r--r-- | numpy/random/src/pcg64/pcg64.h | 2 | ||||
| -rw-r--r-- | numpy/random/src/philox/philox.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/random/src/mt19937/mt19937.h b/numpy/random/src/mt19937/mt19937.h index 1b39e0b64..83129336a 100644 --- a/numpy/random/src/mt19937/mt19937.h +++ b/numpy/random/src/mt19937/mt19937.h @@ -2,7 +2,7 @@ #include <math.h> #include <stdint.h> -#ifdef _WIN32 +#if defined(_WIN32) && !defined (__MINGW32__) #define inline __forceinline #endif diff --git a/numpy/random/src/pcg64/pcg64.h b/numpy/random/src/pcg64/pcg64.h index 90a83fd5e..fb8281201 100644 --- a/numpy/random/src/pcg64/pcg64.h +++ b/numpy/random/src/pcg64/pcg64.h @@ -52,7 +52,7 @@ #include <inttypes.h> -#ifdef _WIN32 +#if defined(_WIN32) && !defined (__MINGW32__) #include <stdlib.h> #define inline __forceinline #endif diff --git a/numpy/random/src/philox/philox.h b/numpy/random/src/philox/philox.h index 8844acc15..81e034a47 100644 --- a/numpy/random/src/philox/philox.h +++ b/numpy/random/src/philox/philox.h @@ -33,7 +33,7 @@ static NPY_INLINE uint64_t mulhilo64(uint64_t a, uint64_t b, uint64_t *hip) { return (uint64_t)product; } #else -#if defined(_WIN32) +#if defined(_WIN32) && !defined(__MINGW32__) #include <intrin.h> #if defined(_WIN64) && defined(_M_AMD64) #pragma intrinsic(_umul128) |
