[New-bugs-announce] [issue20707] 3.4 cherry-pick: bf413a97f1a9 fix conflicting hypot definition with VS 2010
report at bugs.python.org
Thu Feb 20 22:56:14 CET 2014
New submission from Zachary Ware:
PC/pyconfig.h does "#define hypot _hypot", but VS 2010 and above already define a hypot function (implemented by _hypot), which results in a warning if you have warning 4211 enabled (which warning level 4 does) or a recursive definition which results in a crash at runtime, depending on how you use Python.h. Python itself doesn't suffer from the runtime crash, but Blender does because of Python.
bf413a97f1a9 fixes it by guarding the #define with #if _MSC_VER < 1600.
This one is kind of borderline for RC phase in my mind, so I leave it up to you to decide, Larry. It is a serious issue for at least Blender and one other extension author. On the other hand, this issue has been around since 3.3.0 (the first VS 2010-supporting release) and was only reported this January.
components: Build, Windows
nosy: larry, zach.ware
priority: release blocker
title: 3.4 cherry-pick: bf413a97f1a9 fix conflicting hypot definition with VS 2010
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce