]> granicus.if.org Git - python/commitdiff
Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
authorZachary Ware <zachary.ware@gmail.com>
Fri, 25 Jul 2014 19:34:19 +0000 (14:34 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Fri, 25 Jul 2014 19:34:19 +0000 (14:34 -0500)
Patch by Zachary Turner.

Misc/NEWS
PC/pyconfig.h

index 4fb4b3f6403f8bd9588961d75cfd54d84fbae728..8d32544ad59b7f382346a80f0b6278620b799fe4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -180,6 +180,9 @@ Library
 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.
 
index 5a6acfc364fca0197ebd7fd0cdfb85ed566d050c..e1c19884ae37bff417430b2a3275f1647c0f3ecc 100644 (file)
@@ -436,6 +436,11 @@ Py_NO_ENABLE_SHARED to find out.  Also support MS_NO_COREDLL for b/w compat */
 /* 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