--- a/numpy/random/src/mt19937/mt19937.h 2019-09-19 14:43:38.757883000 +0200 +++ b/numpy/random/src/mt19937/mt19937.h 2019-09-19 14:43:08.257910100 +0200 @@ -2,7 +2,7 @@ #include #include -#ifdef _WIN32 +#if defined(_WIN32) && !defined (__MINGW32__) #define inline __forceinline #endif --- a/numpy/random/src/pcg64/pcg64.h 2019-09-19 14:43:38.757883000 +0200 +++ b/numpy/random/src/pcg64/pcg64.h 2019-09-19 14:43:08.257910100 +0200 @@ -52,7 +52,7 @@ #include -#ifdef _WIN32 +#if defined(_WIN32) && !defined (__MINGW32__) #include #define inline __forceinline #endif