Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
npy_os.h43 linesDownload Raw Back to numpy
1#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_
2#define NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_
3
4#if defined(linux) || defined(__linux) || defined(__linux__)
5    #define NPY_OS_LINUX
6#elif defined(__FreeBSD__) || defined(__NetBSD__) || \
7            defined(__OpenBSD__) || defined(__DragonFly__)
8    #define NPY_OS_BSD
9    #ifdef __FreeBSD__
10        #define NPY_OS_FREEBSD
11    #elif defined(__NetBSD__)
12        #define NPY_OS_NETBSD
13    #elif defined(__OpenBSD__)
14        #define NPY_OS_OPENBSD
15    #elif defined(__DragonFly__)
16        #define NPY_OS_DRAGONFLY
17    #endif
18#elif defined(sun) || defined(__sun)
19    #define NPY_OS_SOLARIS
20#elif defined(__CYGWIN__)
21    #define NPY_OS_CYGWIN
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__)
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
34#elif defined(__APPLE__)
35    #define NPY_OS_DARWIN
36#elif defined(__HAIKU__)
37    #define NPY_OS_HAIKU
38#else
39    #define NPY_OS_UNKNOWN
40#endif
41
42#endif  /* NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ */
43 
codekingpro/portable-devtools · Team Ai