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 tabrezm
Recipients tabrezm
Date 2014-01-11.03:09:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389409768.81.0.962130999427.issue20221@psf.upfronthosting.co.za>
In-reply-to
Content
In pyconfig.h (line 216), there is this line:
#define hypot _hypot

This conflicts with the definition of _hypot that ships with VS2010 (math.h, line 161):
static __inline double __CRTDECL hypot(_In_ double _X, _In_ double _Y)

The result of the redefinition is that the following warning occurs during compilation:
1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(162): warning C4211: nonstandard extension used : redefined extern to static

When compiling with warnings being treated as errors, this will obviously result in failed builds.

The recommendation from Microsoft (see http://connect.microsoft.com/VisualStudio/feedback/details/633988/warning-in-math-h-line-162-re-nonstandard-extensions-used) is to change the definition to:
#if _MSC_VER < 1600
#define hypot _hypot
#endif
History
Date User Action Args
2014-01-11 03:09:30tabrezmsetrecipients: + tabrezm
2014-01-11 03:09:28tabrezmsetmessageid: <1389409768.81.0.962130999427.issue20221@psf.upfronthosting.co.za>
2014-01-11 03:09:28tabrezmlinkissue20221 messages
2014-01-11 03:09:26tabrezmcreate