[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.
rgpitts
report at bugs.python.org
Wed Sep 2 11:39:46 CEST 2009
New submission from rgpitts <richard.pitts at cdl.co.uk>:
I'm working with the Python C API and omniOrb with Visual Studio 2008
on Windows XP.
A OmniOrb header corba_sys_dep.h is defining HAVE_STRFTIME as 1
...
#define HAVE_STRFTIME 1
...
pyconfig.h is then defining this again.
...
#define HAVE_STRFTIME
...
This is raising a compiler warning and then multiple syntax errors in
math.h depending on the order of inclusion of these headers. If the
pyconfig.h is included after corba_sys_dep.h multiple syntax errors.
However if it is included before only a warning is raised.
I think pyconfig.h needs changing to
#ifndef HAVE_STRFTIME
#define HAVE_STRFTIME
#endif
----------
components: Windows
messages: 92159
nosy: rgpitts
severity: normal
status: open
title: Redefinition of HAVE_STRFTIME can cause compiler errors.
type: compile error
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6820>
_______________________________________
More information about the Python-bugs-list
mailing list