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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20597>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to