Author Zachary.Turner
Recipients Zachary.Turner, steve.dower
Date 2014-07-11.17:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
VS2013 and beyond implement C99 math functions.  Of interest to Python is the function round().  Python conditionally provides its own implementation of round() based on whether or not HAVE_ROUND is defined, but in no case is HAVE_ROUND ever defined.  This leads to a huge spew of warnings when compiling with VS2013, and presumably it also leads to undefined behavior.

The attached patch conditionally defines HAVE_ROUND based on _MSC_VER, and additionally provides a VS2013 port in the form of a set of native VS2013 solution and project files.

This patch is based against tip of 2.7 release branch.  The same fix may or may not still be needed in 3.x
Date User Action Args
2014-07-11 17:20:05Zachary.Turnersetrecipients: + Zachary.Turner, steve.dower
2014-07-11 17:20:04Zachary.Turnersetmessageid: <>
2014-07-11 17:20:04Zachary.Turnerlinkissue21958 messages
2014-07-11 17:20:04Zachary.Turnercreate