diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-02-20 18:48:02 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-02-20 19:04:02 +0300 |
commit | c140aae9bee1d236321521b93d2c5aa5fe7ee05c (patch) | |
tree | a0e7294a3d9c59fef62308e0ee0166a264d5e5cc /contrib/tools/python/src/Python | |
parent | 676a0db906b78ae61a520261bb26509ee298c6cd (diff) | |
download | ydb-c140aae9bee1d236321521b93d2c5aa5fe7ee05c.tar.gz |
Disable OS/2-specific includes
f5b4da0f22a2a1fa5790298ebe33ad52c5edf6dd
Diffstat (limited to 'contrib/tools/python/src/Python')
-rw-r--r-- | contrib/tools/python/src/Python/import.c | 4 | ||||
-rw-r--r-- | contrib/tools/python/src/Python/importdl.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tools/python/src/Python/import.c b/contrib/tools/python/src/Python/import.c index dbf89b763f..d59c1549bf 100644 --- a/contrib/tools/python/src/Python/import.c +++ b/contrib/tools/python/src/Python/import.c @@ -1701,10 +1701,10 @@ PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr * fd) #define INCL_DOS #define INCL_DOSERRORS #define INCL_NOPMAPI -#include <os2.h> +#error #include <os2.h> #elif defined(RISCOS) -#include "oslib/osfscontrol.h" +#error #include "oslib/osfscontrol.h" #endif static int diff --git a/contrib/tools/python/src/Python/importdl.h b/contrib/tools/python/src/Python/importdl.h index b4d21be6f0..ad577fe4ea 100644 --- a/contrib/tools/python/src/Python/importdl.h +++ b/contrib/tools/python/src/Python/importdl.h @@ -39,7 +39,7 @@ extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname, typedef FARPROC dl_funcptr; #else #if defined(PYOS_OS2) && !defined(PYCC_GCC) -#include <os2def.h> +#error #include <os2def.h> typedef int (* APIENTRY dl_funcptr)(); #else typedef void (*dl_funcptr)(void); |