From fd583ac59413021b0a142579212b27a4e4cad2fb Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sat, 6 May 2017 00:41:52 -0500 Subject: [PATCH] Fix MSC 2-digit-exponent in cvtFastTest.c --- src/libCom/test/cvtFastTest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libCom/test/cvtFastTest.c b/src/libCom/test/cvtFastTest.c index 5d2c8af20..7943f5baf 100644 --- a/src/libCom/test/cvtFastTest.c +++ b/src/libCom/test/cvtFastTest.c @@ -46,8 +46,11 @@ MAIN(cvtFastTest) epicsFloat32 val_Float; epicsFloat64 val_Double; -#if defined(WIN32) && (!defined(_MINGW) || __MSVCRT_VERSION__ >= 0x0800) +#ifdef _WIN32 +#if (defined(_MSC_VER) && _MSC_VER < 1900) || \ + (defined(_MINGW) && defined(_TWO_DIGIT_EXPONENT)) _set_output_format(_TWO_DIGIT_EXPONENT); +#endif #endif testPlan(1062);