Content-Length: 285845 | pFad | http://togithub.com/numpy/numpy/commit/3dec6614a068440aed4663424ea5ba57cd4ac1ce

C62 Merge pull request #24813 from charris/backport-24762 · numpy/numpy@3dec661 · GitHub
Skip to content

Commit 3dec661

Browse files
authored
Merge pull request #24813 from charris/backport-24762
BUG: Fix order of Windows OS detection macros.
2 parents ac5b97a + 0a17169 commit 3dec661

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

numpy/core/include/numpy/npy_os.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
#define NPY_OS_SOLARIS
2020
#elif defined(__CYGWIN__)
2121
#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__)
2726
#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
2834
#elif defined(__APPLE__)
2935
#define NPY_OS_DARWIN
3036
#elif defined(__HAIKU__)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://togithub.com/numpy/numpy/commit/3dec6614a068440aed4663424ea5ba57cd4ac1ce

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy