mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
Changes enabling Python to compile under OS/2 Visual Age C++.
This commit is contained in:
parent
c44403995e
commit
603c6831d0
7 changed files with 68 additions and 36 deletions
|
@ -567,7 +567,11 @@ builtin_execfile(PyObject *self, PyObject *args)
|
|||
#ifndef RISCOS
|
||||
if (!stat(filename, &s)) {
|
||||
if (S_ISDIR(s.st_mode))
|
||||
#if defined(PYOS_OS2) && defined(PYCC_VACPP)
|
||||
errno = EOS2ERR;
|
||||
#else
|
||||
errno = EISDIR;
|
||||
#endif
|
||||
else
|
||||
exists = 1;
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
|
|||
typedef FARPROC dl_funcptr;
|
||||
#else
|
||||
#ifdef PYOS_OS2
|
||||
#include <os2def.h>
|
||||
typedef int (* APIENTRY dl_funcptr)();
|
||||
#else
|
||||
typedef void (*dl_funcptr)(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue