changeset: 91868:1c35cefd25b7 branch: 3.4 parent: 91864:1c7567ec6292 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 1c7567ec6292 -r 1c35cefd25b7 Misc/NEWS --- a/Misc/NEWS Fri Jul 25 13:30:50 2014 -0500 +++ b/Misc/NEWS Fri Jul 25 14:34:19 2014 -0500 @@ -180,6 +180,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 1c7567ec6292 -r 1c35cefd25b7 PC/pyconfig.h --- a/PC/pyconfig.h Fri Jul 25 13:30:50 2014 -0500 +++ b/PC/pyconfig.h Fri Jul 25 14:34:19 2014 -0500 @@ -436,6 +436,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