npy_os.h 817 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _NPY_OS_H_
  2. #define _NPY_OS_H_
  3. #if defined(linux) || defined(__linux) || defined(__linux__)
  4. #define NPY_OS_LINUX
  5. #elif defined(__FreeBSD__) || defined(__NetBSD__) || \
  6. defined(__OpenBSD__) || defined(__DragonFly__)
  7. #define NPY_OS_BSD
  8. #ifdef __FreeBSD__
  9. #define NPY_OS_FREEBSD
  10. #elif defined(__NetBSD__)
  11. #define NPY_OS_NETBSD
  12. #elif defined(__OpenBSD__)
  13. #define NPY_OS_OPENBSD
  14. #elif defined(__DragonFly__)
  15. #define NPY_OS_DRAGONFLY
  16. #endif
  17. #elif defined(sun) || defined(__sun)
  18. #define NPY_OS_SOLARIS
  19. #elif defined(__CYGWIN__)
  20. #define NPY_OS_CYGWIN
  21. #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
  22. #define NPY_OS_WIN32
  23. #elif defined(__APPLE__)
  24. #define NPY_OS_DARWIN
  25. #else
  26. #define NPY_OS_UNKNOWN
  27. #endif
  28. #endif