[Python-checkins] cpython: Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is

victor.stinner python-checkins at python.org
Wed Nov 5 15:12:13 CET 2014


https://hg.python.org/cpython/rev/6aaa0aab1e93
changeset:   93386:6aaa0aab1e93
parent:      93384:2aac2d76035e
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Nov 05 15:11:34 2014 +0100
summary:
  Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is
now preferred. Patch written by Jeffrey Armstrong.

files:
  Modules/main.c     |  1 -
  Python/pythonrun.c |  1 -
  2 files changed, 0 insertions(+), 2 deletions(-)


diff --git a/Modules/main.c b/Modules/main.c
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -9,7 +9,6 @@
 #include <windows.h>
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
-#define PATH_MAX MAXPATHLEN
 #endif
 #endif
 
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -32,7 +32,6 @@
 #ifdef MS_WINDOWS
 #undef BYTE
 #include "windows.h"
-#define PATH_MAX MAXPATHLEN
 #endif
 
 #ifdef __gnu_hurd__

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list