diff options
Diffstat (limited to 'Include/osdefs.h')
-rw-r--r-- | Include/osdefs.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h index 3243944..77af923 100644 --- a/Include/osdefs.h +++ b/Include/osdefs.h @@ -7,20 +7,32 @@ extern "C" { /* Operating system dependencies */ -#ifdef MS_WINDOWS -#define SEP L'\\' -#define ALTSEP L'/' +/* Mod by chrish: QNX has WATCOM, but isn't DOS */ +#if !defined(__QNX__) +#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2) +#if defined(PYOS_OS2) && defined(PYCC_GCC) +#define MAXPATHLEN 260 +#define SEP '/' +#define ALTSEP '\\' +#else +#define SEP '\\' +#define ALTSEP '/' #define MAXPATHLEN 256 -#define DELIM L';' +#endif +#define DELIM ';' +#endif #endif -#ifdef __VXWORKS__ -#define DELIM L';' +#ifdef RISCOS +#define SEP '.' +#define MAXPATHLEN 256 +#define DELIM ',' #endif + /* Filename separator */ #ifndef SEP -#define SEP L'/' +#define SEP '/' #endif /* Max pathname length */ @@ -42,7 +54,7 @@ extern "C" { /* Search path entry delimiter */ #ifndef DELIM -#define DELIM L':' +#define DELIM ':' #endif #ifdef __cplusplus |