]> granicus.if.org Git - python/commitdiff
bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147)
authorErik Bray <erik.m.bray@gmail.com>
Fri, 27 Oct 2017 12:27:06 +0000 (14:27 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Oct 2017 12:27:06 +0000 (05:27 -0700)
Remove dangling references to PYCC_VACPP that are not relelvant
since removal of OS/2 support.

Modules/posixmodule.c
Modules/socketmodule.c

index 661fa1312ad06047fc8fc54a0ae844f8e227eff5..de32327b30402ac23cbc93dd4f769125903c00c4 100644 (file)
@@ -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);
index 6f114efe31eddf5efee507e56f56605cd3a371ba..643148e53f99fc55a308dd99373c1c1298999c3d 100644 (file)
@@ -226,13 +226,6 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
 # include "pythread.h"
 #endif
 
-#if defined(PYCC_VACPP)
-# include <types.h>
-# include <io.h>
-# include <sys/ioctl.h>
-# include <utils.h>
-# include <ctype.h>
-#endif
 
 #if defined(__APPLE__) || defined(__CYGWIN__)
 # include <sys/ioctl.h>