Files
MINGW-packages/mingw-w64-python3/0810-remove_path_max.default.patch
2014-03-17 10:49:46 +04:00

34 lines
1.0 KiB
Diff

diff -Naur a/Include/osdefs.h b/Include/osdefs.h
--- a/Include/osdefs.h 2014-03-17 10:46:30.216400000 +0400
+++ b/Include/osdefs.h 2014-03-17 10:47:05.160400000 +0400
@@ -11,7 +11,6 @@
#if !defined(__QNX__)
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
#if (defined(PYOS_OS2) && defined(PYCC_GCC)) || defined(__MINGW32__)
-#define MAXPATHLEN 260
#define SEP L'/'
#define ALTSEP L'\\'
#else
diff -Naur a/Modules/main.c b/Modules/main.c
--- a/Modules/main.c 2014-03-09 12:40:27.000000000 +0400
+++ b/Modules/main.c 2014-03-17 10:47:05.176000000 +0400
@@ -14,7 +14,6 @@
#include <windows.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
-#define PATH_MAX MAXPATHLEN
#endif
#endif
diff -Naur a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c 2014-03-17 10:46:30.232000000 +0400
+++ b/Python/pythonrun.c 2014-03-17 10:47:05.176000000 +0400
@@ -32,7 +32,6 @@
#ifdef MS_WINDOWS
#undef BYTE
#include "windows.h"
-#define PATH_MAX MAXPATHLEN
#endif
#ifndef Py_REF_DEBUG