Skip to content

Commit

Permalink
BUG: blacklist MSVC hypot() on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed Aug 16, 2017
1 parent 6630945 commit 441c082
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions numpy/core/src/private/npy_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@

#endif

/* MSVC _hypot messes with fp precision mode on 32-bit, see gh-9567 */
#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(_WIN64)

#undef HAVE_HYPOT
#undef HAVE_HYPOTF
#undef HAVE_HYPOTL

#endif


/* Intel C for Windows uses POW for 64 bits longdouble*/
#if defined(_MSC_VER) && defined(__INTEL_COMPILER)
Expand Down

0 comments on commit 441c082

Please sign in to comment.