changeset: 91867:cb2e1b3a395f branch: 2.7 parent: 91860:a5cb10f2dbaa user: Zachary Ware date: Fri Jul 25 14:34:19 2014 -0500 files: Misc/NEWS PC/pyconfig.h description: Issue #21958: Define HAVE_ROUND when building with VS 2013 and above. Patch by Zachary Turner. diff -r a5cb10f2dbaa -r cb2e1b3a395f Misc/NEWS --- a/Misc/NEWS Fri Jul 25 10:26:36 2014 -0700 +++ b/Misc/NEWS Fri Jul 25 14:34:19 2014 -0500 @@ -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 -r a5cb10f2dbaa -r cb2e1b3a395f PC/pyconfig.h --- a/PC/pyconfig.h Fri Jul 25 10:26:36 2014 -0700 +++ b/PC/pyconfig.h Fri Jul 25 14:34:19 2014 -0500 @@ -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