home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Include / osdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  902 b   |  52 lines

  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7.  
  8. /* Operating system dependencies */
  9.  
  10. #ifdef macintosh
  11. #define SEP ':'
  12. #define MAXPATHLEN 256
  13. /* Mod by Jack: newline is less likely to occur in filenames than space */
  14. #define DELIM '\n'
  15. #endif
  16.  
  17. #ifdef _AMIGA
  18. #define SEP '/'
  19. #define MAXPATHLEN 256
  20. #define DELIM ';'
  21. #endif
  22.  
  23. /* Mod by chrish: QNX has WATCOM, but isn't DOS */
  24. #if !defined(__QNX__)
  25. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
  26. #define SEP '\\'
  27. #define ALTSEP '/'
  28. #define MAXPATHLEN 256
  29. #define DELIM ';'
  30. #endif
  31. #endif
  32.  
  33. /* Filename separator */
  34. #ifndef SEP
  35. #define SEP '/'
  36. #endif
  37.  
  38. /* Max pathname length */
  39. #ifndef MAXPATHLEN
  40. #define MAXPATHLEN 1024
  41. #endif
  42.  
  43. /* Search path entry delimiter */
  44. #ifndef DELIM
  45. #define DELIM ':'
  46. #endif
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* !Py_OSDEFS_H */
  52.