summaryrefslogtreecommitdiffstats
path: root/Include/osdefs.h
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-26 11:20:01 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-26 11:20:01 (GMT)
commit5e090fc98525308d2a86eaf5c535c3c2ba1a644c (patch)
tree9e6cf688103290b717366d853c0077cf7f5304d7 /Include/osdefs.h
parent67716b5f53715e57d147cde9539b8d76a5a56e11 (diff)
downloadcpython-5e090fc98525308d2a86eaf5c535c3c2ba1a644c.zip
cpython-5e090fc98525308d2a86eaf5c535c3c2ba1a644c.tar.gz
cpython-5e090fc98525308d2a86eaf5c535c3c2ba1a644c.tar.bz2
OS/2 EMX port changes (Include part of patch #450267):
Include/ osdefs.h // EMX promotes Un*x path separators pyport.h
Diffstat (limited to 'Include/osdefs.h')
-rw-r--r--Include/osdefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h
index 7a382ce..89e0ecb 100644
--- a/Include/osdefs.h
+++ b/Include/osdefs.h
@@ -17,9 +17,15 @@ extern "C" {
/* 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
+#endif
#define DELIM ';'
#endif
#endif