summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorErik Bray <erik.m.bray@gmail.com>2017-10-27 12:27:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-10-27 12:27:06 (GMT)
commit03eb11f0b354751248b427455b89e9340cfd2b47 (patch)
tree1f3fc3181a312d1df927b86346032fe404dc4e07 /Modules/posixmodule.c
parent843ea47a034307c7b1ca642dd70f0269255b289a (diff)
downloadcpython-03eb11f0b354751248b427455b89e9340cfd2b47.zip
cpython-03eb11f0b354751248b427455b89e9340cfd2b47.tar.gz
cpython-03eb11f0b354751248b427455b89e9340cfd2b47.tar.bz2
bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147)
Remove dangling references to PYCC_VACPP that are not relelvant since removal of OS/2 support.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 661fa13..de32327 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -210,15 +210,11 @@ extern char *ctermid_r(char *);
#endif
#ifndef HAVE_UNISTD_H
-#if defined(PYCC_VACPP)
-extern int mkdir(char *);
-#else
#if ( defined(__WATCOMC__) || defined(_MSC_VER) ) && !defined(__QNX__)
extern int mkdir(const char *);
#else
extern int mkdir(const char *, mode_t);
#endif
-#endif
#if defined(__IBMC__) || defined(__IBMCPP__)
extern int chdir(char *);
extern int rmdir(char *);
@@ -3886,7 +3882,7 @@ os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
result = mkdirat(dir_fd, path->narrow, mode);
else
#endif
-#if ( defined(__WATCOMC__) || defined(PYCC_VACPP) ) && !defined(__QNX__)
+#if defined(__WATCOMC__) && !defined(__QNX__)
result = mkdir(path->narrow);
#else
result = mkdir(path->narrow, mode);