[Python-checkins] cpython (2.7): Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.

zach.ware python-checkins at python.org
Fri Jul 25 21:48:48 CEST 2014


http://hg.python.org/cpython/rev/cb2e1b3a395f
changeset:   91867:cb2e1b3a395f
branch:      2.7
parent:      91860:a5cb10f2dbaa
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
@@ -58,6 +58,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
@@ -435,6 +435,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