]> 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 4702dfe7bb5731f10d2764782023be07051ea4cf..01f4c1730434a63d4b7826d65b366f72e7b63041 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -58,6 +58,9 @@ Tests
 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 2b1666568bee2e7ea41c5ec13c0977bd3e6bb37e..a45d5ebf4ab0a3614428ff85d3a677c1cfd3ba18 100644 (file)
@@ -435,6 +435,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