From: Zachary Ware Date: Fri, 25 Jul 2014 19:34:19 +0000 (-0500) Subject: Issue #21958: Define HAVE_ROUND when building with VS 2013 and above. X-Git-Tag: v2.7.9rc1~340 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d8f29a623f27d72bf1622132f2b2c4084eff9e3;p=thirdparty%2FPython%2Fcpython.git Issue #21958: Define HAVE_ROUND when building with VS 2013 and above. Patch by Zachary Turner. --- diff --git a/Misc/NEWS b/Misc/NEWS index 4702dfe7bb57..01f4c1730434 100644 --- 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. diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 2b1666568bee..a45d5ebf4ab0 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -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