osdefs.h 714 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /* Operating system dependencies */
  7. #ifdef MS_WINDOWS
  8. #define SEP L'\\'
  9. #define ALTSEP L'/'
  10. #define DELIM L';'
  11. #endif
  12. #ifdef __VXWORKS__
  13. #define DELIM L';'
  14. #endif
  15. /* Filename separator */
  16. #ifndef SEP
  17. #define SEP L'/'
  18. #endif
  19. /* Max pathname length */
  20. #ifdef __hpux
  21. #include <sys/param.h>
  22. #include <limits.h>
  23. #ifndef PATH_MAX
  24. #define PATH_MAX MAXPATHLEN
  25. #endif
  26. #endif
  27. #ifndef MAXPATHLEN
  28. #if defined(PATH_MAX) && PATH_MAX > 1024
  29. #define MAXPATHLEN PATH_MAX
  30. #else
  31. #define MAXPATHLEN 1024
  32. #endif
  33. #endif
  34. /* Search path entry delimiter */
  35. #ifndef DELIM
  36. #define DELIM L':'
  37. #endif
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* !Py_OSDEFS_H */