File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 19
19
#define NPY_OS_SOLARIS
20
20
#elif defined(__CYGWIN__ )
21
21
#define NPY_OS_CYGWIN
22
- #elif defined(_WIN32 ) || defined(__WIN32__ ) || defined(WIN32 )
23
- #define NPY_OS_WIN32
24
- #elif defined(_WIN64 ) || defined(__WIN64__ ) || defined(WIN64 )
25
- #define NPY_OS_WIN64
26
- #elif defined(__MINGW32__ ) || defined(__MINGW64__ )
22
+ /* We are on Windows.*/
23
+ #elif defined(_WIN32 )
24
+ /* We are using MinGW (64-bit or 32-bit)*/
25
+ #if defined(__MINGW32__ ) || defined(__MINGW64__ )
27
26
#define NPY_OS_MINGW
27
+ /* Otherwise, if _WIN64 is defined, we are targeting 64-bit Windows*/
28
+ #elif defined(_WIN64 )
29
+ #define NPY_OS_WIN64
30
+ /* Otherwise assume we are targeting 32-bit Windows*/
31
+ #else
32
+ #define NPY_OS_WIN32
33
+ #endif
28
34
#elif defined(__APPLE__ )
29
35
#define NPY_OS_DARWIN
30
36
#elif defined(__HAIKU__ )
You can’t perform that action at this time.
0 commit comments