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.

Author rgpitts
Recipients rgpitts
Date 2009-09-02.09:39:43
SpamBayes Score 0.03748638
Marked as misclassified No
Message-id <1251884386.05.0.339554390546.issue6820@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-09-02 09:39:46rgpittssetrecipients: + rgpitts
2009-09-02 09:39:46rgpittssetmessageid: <1251884386.05.0.339554390546.issue6820@psf.upfronthosting.co.za>
2009-09-02 09:39:43rgpittslinkissue6820 messages
2009-09-02 09:39:43rgpittscreate