jpayne@69: #ifndef Py_OSDEFS_H jpayne@69: #define Py_OSDEFS_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: jpayne@69: /* Operating system dependencies */ jpayne@69: jpayne@69: #ifdef MS_WINDOWS jpayne@69: #define SEP L'\\' jpayne@69: #define ALTSEP L'/' jpayne@69: #define MAXPATHLEN 256 jpayne@69: #define DELIM L';' jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __VXWORKS__ jpayne@69: #define DELIM L';' jpayne@69: #endif jpayne@69: jpayne@69: /* Filename separator */ jpayne@69: #ifndef SEP jpayne@69: #define SEP L'/' jpayne@69: #endif jpayne@69: jpayne@69: /* Max pathname length */ jpayne@69: #ifdef __hpux jpayne@69: #include jpayne@69: #include jpayne@69: #ifndef PATH_MAX jpayne@69: #define PATH_MAX MAXPATHLEN jpayne@69: #endif jpayne@69: #endif jpayne@69: jpayne@69: #ifndef MAXPATHLEN jpayne@69: #if defined(PATH_MAX) && PATH_MAX > 1024 jpayne@69: #define MAXPATHLEN PATH_MAX jpayne@69: #else jpayne@69: #define MAXPATHLEN 1024 jpayne@69: #endif jpayne@69: #endif jpayne@69: jpayne@69: /* Search path entry delimiter */ jpayne@69: #ifndef DELIM jpayne@69: #define DELIM L':' jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_OSDEFS_H */