Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
942 B

  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* Operating system dependencies */
  7. /* Mod by chrish: QNX has WATCOM, but isn't DOS */
  8. #if !defined(__QNX__)
  9. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
  10. #if defined(PYOS_OS2) && defined(PYCC_GCC)
  11. #define MAXPATHLEN 260
  12. #define SEP '/'
  13. #define ALTSEP '\\'
  14. #else
  15. #define SEP '\\'
  16. #define ALTSEP '/'
  17. #define MAXPATHLEN 256
  18. #endif
  19. #define DELIM ';'
  20. #endif
  21. #endif
  22. #ifdef RISCOS
  23. #define SEP '.'
  24. #define MAXPATHLEN 256
  25. #define DELIM ','
  26. #endif
  27. /* Filename separator */
  28. #ifndef SEP
  29. #define SEP '/'
  30. #endif
  31. /* Max pathname length */
  32. #ifndef MAXPATHLEN
  33. #if defined(PATH_MAX) && PATH_MAX > 1024
  34. #define MAXPATHLEN PATH_MAX
  35. #else
  36. #define MAXPATHLEN 1024
  37. #endif
  38. #endif
  39. /* Search path entry delimiter */
  40. #ifndef DELIM
  41. #define DELIM ':'
  42. #endif
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* !Py_OSDEFS_H */