--- numpy-1.17.0/numpy/core/include/numpy/npy_common.h.orig 2019-08-03 12:42:33.905141400 +0300 +++ numpy-1.17.0/numpy/core/include/numpy/npy_common.h 2019-08-03 12:43:02.271763900 +0300 @@ -160,7 +160,7 @@ #include /* mingw based on 3.4.5 has lseek but not ftell/fseek */ -#if defined(__MINGW32__) || defined(__MINGW64__) +#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) extern int __cdecl _fseeki64(FILE *, long long, int); extern long long __cdecl _ftelli64(FILE *); #endif