This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PLATFORM macro in PC/pyconfig.h already defined by Apache
Type: enhancement Stage:
Components: Build, Interpreter Core Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, moese
Priority: low Keywords:

Created on 2007-07-07 11:34 by moese, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg32456 - (view) Author: Moese (moese) Date: 2007-07-07 11:34
Both pyconfig.h from Python and os.h from Apache define the PLATFORM macro ("win32" vs. "Win32").

For projects which include both (like mod_wsgi) this generates a level 1 warning in Visual Studio.

Maybe the PLATFORM define could be renamed to PY_PLATFORM? There are a few other macros which could potentially collide with other libraries like COMPILER.

Obviously this problem is shared by Python and Apache. I'm not implying that Python is the one which should fix it.
msg59782 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-12 04:21
Please provide a patch and documentation updates (if required) or I'm
going to close the bug in two weeks (2008-01-26).
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45155
2008-05-12 17:10:06georg.brandlsetstatus: pending -> closed
2008-01-12 04:21:16christian.heimessetstatus: open -> pending
versions: + Python 2.6, - Python 2.5
nosy: + christian.heimes
messages: + msg59782
components: + Build
type: enhancement
2007-07-07 11:34:23moesecreate