[New-bugs-announce] [issue20597] PATH_MAX already defined on some Windows compilers

Jeffrey Armstrong report at bugs.python.org
Tue Feb 11 14:11:15 CET 2014


New submission from Jeffrey Armstrong:

On some Windows compilers, the constant PATH_MAX may already be defined, which will cause compile errors on non-MSVC compilers (notably Open Watcom and MinGW).  Rather than assume it is not available and define it in all "#ifdef MS_WINDOWS" cases, it should first be checked for existence.

This patch adds said check to Modules/main.c and Python/pythonrun.c.  This patch should not affect any existing platforms (including MSVC builds).

----------
components: Interpreter Core, Windows
files: path_max.default.patch
keywords: patch
messages: 210936
nosy: Jeffrey.Armstrong
priority: normal
severity: normal
status: open
title: PATH_MAX already defined on some Windows compilers
type: compile error
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file34039/path_max.default.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20597>
_______________________________________


More information about the New-bugs-announce mailing list