npy_os.h
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 #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__) 27 #define NPY_OS_MINGW 28 #elif defined(__APPLE__) 29 #define NPY_OS_DARWIN 30 #elif defined(__HAIKU__) 31 #define NPY_OS_HAIKU 32 #else 33 #define NPY_OS_UNKNOWN 34 #endif 35 36 #endif /* NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ */