home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / osdefs.h < prev    next >
C/C++ Source or Header  |  2003-12-30  |  1KB  |  59 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. /* Mod by chrish: QNX has WATCOM, but isn't DOS */
  18. #if !defined(__QNX__)
  19. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
  20. #if defined(PYOS_OS2) && defined(PYCC_GCC)
  21. #define MAXPATHLEN 260
  22. #define SEP '/'
  23. #define ALTSEP '\\'
  24. #else
  25. #define SEP '\\'
  26. #define ALTSEP '/'
  27. #define MAXPATHLEN 256
  28. #endif
  29. #define DELIM ';'
  30. #endif
  31. #endif
  32.  
  33. #ifdef RISCOS
  34. #define SEP '.'
  35. #define MAXPATHLEN 256
  36. #define DELIM ','
  37. #endif
  38.  
  39.  
  40. /* Filename separator */
  41. #ifndef SEP
  42. #define SEP '/'
  43. #endif
  44.  
  45. /* Max pathname length */
  46. #ifndef MAXPATHLEN
  47. #define MAXPATHLEN 1024
  48. #endif
  49.  
  50. /* Search path entry delimiter */
  51. #ifndef DELIM
  52. #define DELIM ':'
  53. #endif
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif /* !Py_OSDEFS_H */
  59.