[New-bugs-announce] [issue21958] Allow python 2.7 to compile with Visual Studio 2013

Zachary Turner report at bugs.python.org
Fri Jul 11 19:20:04 CEST 2014


New submission from Zachary Turner:

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

----------
components: Windows
files: python.patch
keywords: patch
messages: 222766
nosy: Zachary.Turner, steve.dower
priority: normal
severity: normal
status: open
title: Allow python 2.7 to compile with Visual Studio 2013
type: compile error
versions: Python 2.7
Added file: http://bugs.python.org/file35925/python.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21958>
_______________________________________


More information about the New-bugs-announce mailing list