Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64ba60a

Browse files
committed
Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
1 parent 88a1977 commit 64ba60a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ Library
180180
Build
181181
-----
182182

183+
- Issue #21958: Define HAVE_ROUND when building with Visual Studio 2013 and
184+
above. Patch by Zachary Turner.
185+
183186
- Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
184187
now display special message when and only when there are failures.
185188

PC/pyconfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
436436
/* Define to 1 if you have the `copysign' function. */
437437
#define HAVE_COPYSIGN 1
438438

439+
/* Define to 1 if you have the `round' function. */
440+
#if _MSC_VER >= 1800
441+
#define HAVE_ROUND 1
442+
#endif
443+
439444
/* Define to 1 if you have the `isinf' macro. */
440445
#define HAVE_DECL_ISINF 1
441446

0 commit comments

Comments
 (0)