Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e090fc

Browse files
author
Andrew MacIntyre
committed
OS/2 EMX port changes (Include part of patch #450267):
Include/ osdefs.h // EMX promotes Un*x path separators pyport.h
1 parent 67716b5 commit 5e090fc

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Include/osdefs.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ extern "C" {
1717
/* Mod by chrish: QNX has WATCOM, but isn't DOS */
1818
#if !defined(__QNX__)
1919
#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
2025
#define SEP '\\'
2126
#define ALTSEP '/'
2227
#define MAXPATHLEN 256
28+
#endif
2329
#define DELIM ';'
2430
#endif
2531
#endif

Include/pyport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ typedef LONG_LONG Py_intptr_t;
157157
#endif
158158

159159
#ifndef DONT_HAVE_SYS_STAT_H
160+
#if defined(PYOS_OS2) && defined(PYCC_GCC)
161+
#include <sys/types.h>
162+
#endif
160163
#include <sys/stat.h>
161164
#elif defined(HAVE_STAT_H)
162165
#include <stat.h>

0 commit comments

Comments
 (0)