From f6a4879c7b9c22551343332954e1e0ad274d76f8 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Mon, 29 Apr 2019 20:42:20 +0800 Subject: [PATCH] Fix ilogbl crash and fetestexcept build if _MSC_VER>=1800 (#238) FP_ILOGB0, FP_ILOGBNAN, ilogbm, ilogbf, ilogbl, fetestexcept and feclearexcept are supported in Visual Studio 2013. --- test_common/harness/msvc9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_common/harness/msvc9.c b/test_common/harness/msvc9.c index 3b168453..ca0e45a0 100644 --- a/test_common/harness/msvc9.c +++ b/test_common/harness/msvc9.c @@ -117,6 +117,7 @@ long double rintl(long double x) return x; } +#if _MSC_VER < 1800 /////////////////////////////////////////////////////////////////// // @@ -221,7 +222,7 @@ int ilogbl (long double x) return exp - 0x3fff; } - +#endif // _MSC_VER < 1800 /////////////////////////////////////////////////////////////////// // @@ -566,7 +567,7 @@ long int lrintf (float x) // /////////////////////////////////////////////////////////////////// -#if _MSC_VER < 1900 +#if _MSC_VER < 1800 int fetestexcept(int excepts) { unsigned int status = _statusfp();