Skip to content

Commit 03eb11f

Browse files
embrayvstinner
authored andcommitted
bpo-16135: Cleanup: Code rot left over from OS/2 support (pythonGH-4147)
Remove dangling references to PYCC_VACPP that are not relelvant since removal of OS/2 support.
1 parent 843ea47 commit 03eb11f

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,11 @@ extern char *ctermid_r(char *);
210210
#endif
211211

212212
#ifndef HAVE_UNISTD_H
213-
#if defined(PYCC_VACPP)
214-
extern int mkdir(char *);
215-
#else
216213
#if ( defined(__WATCOMC__) || defined(_MSC_VER) ) && !defined(__QNX__)
217214
extern int mkdir(const char *);
218215
#else
219216
extern int mkdir(const char *, mode_t);
220217
#endif
221-
#endif
222218
#if defined(__IBMC__) || defined(__IBMCPP__)
223219
extern int chdir(char *);
224220
extern int rmdir(char *);
@@ -3886,7 +3882,7 @@ os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
38863882
result = mkdirat(dir_fd, path->narrow, mode);
38873883
else
38883884
#endif
3889-
#if ( defined(__WATCOMC__) || defined(PYCC_VACPP) ) && !defined(__QNX__)
3885+
#if defined(__WATCOMC__) && !defined(__QNX__)
38903886
result = mkdir(path->narrow);
38913887
#else
38923888
result = mkdir(path->narrow, mode);

Modules/socketmodule.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,6 @@ if_indextoname(index) -- return the corresponding interface name\n\
226226
# include "pythread.h"
227227
#endif
228228

229-
#if defined(PYCC_VACPP)
230-
# include <types.h>
231-
# include <io.h>
232-
# include <sys/ioctl.h>
233-
# include <utils.h>
234-
# include <ctype.h>
235-
#endif
236229

237230
#if defined(__APPLE__) || defined(__CYGWIN__)
238231
# include <sys/ioctl.h>

0 commit comments

Comments
 (0)