summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-05 14:11:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-11-05 14:11:34 (GMT)
commitce43f38ace1122a7561da0a73ceea6743974608d (patch)
tree9705c36fa3a8828a42234de9de0ac3ecc52b5825
parent68b11d129dc28f741e5522fe07b4b935c0d59198 (diff)
downloadcpython-ce43f38ace1122a7561da0a73ceea6743974608d.zip
cpython-ce43f38ace1122a7561da0a73ceea6743974608d.tar.gz
cpython-ce43f38ace1122a7561da0a73ceea6743974608d.tar.bz2
Issue #20597: Remove unused definition of PATH_MAX on Windows, MAXPATHLEN is
now preferred. Patch written by Jeffrey Armstrong.
-rw-r--r--Modules/main.c1
-rw-r--r--Python/pythonrun.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 8a9f5a2..c4883c9 100644
--- 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
index bac39c2..33cebc1 100644
--- 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__