[Python-checkins] cpython (3.4): Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
zach.ware
python-checkins at python.org
Fri Jul 25 21:48:49 CEST 2014
http://hg.python.org/cpython/rev/1c35cefd25b7
changeset: 91868:1c35cefd25b7
branch: 3.4
parent: 91864:1c7567ec6292
user: Zachary Ware <zachary.ware at gmail.com>
date: Fri Jul 25 14:34:19 2014 -0500
summary:
Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
files:
Misc/NEWS | 3 +++
PC/pyconfig.h | 5 +++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -180,6 +180,9 @@
Build
-----
+- Issue #21958: Define HAVE_ROUND when building with Visual Studio 2013 and
+ above. Patch by Zachary Turner.
+
- Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -436,6 +436,11 @@
/* Define to 1 if you have the `copysign' function. */
#define HAVE_COPYSIGN 1
+/* Define to 1 if you have the `round' function. */
+#if _MSC_VER >= 1800
+#define HAVE_ROUND 1
+#endif
+
/* Define to 1 if you have the `isinf' macro. */
#define HAVE_DECL_ISINF 1
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list