From 62f87df83456d87289f3e01f97009c0a806e5fcb Mon Sep 17 00:00:00 2001 From: Evan Hunter Date: Thu, 25 Feb 2016 09:22:35 +0000 Subject: Windows: Exponent modification is only required by MinGW --- jim-win32compat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jim-win32compat.h b/jim-win32compat.h index b772b6f..edd29c3 100644 --- a/jim-win32compat.h +++ b/jim-win32compat.h @@ -16,8 +16,10 @@ int dlclose(void *handle); void *dlsym(void *handle, const char *symbol); char *dlerror(void); -/* MS CRT always uses three digits after 'e' */ -#define JIM_SPRINTF_DOUBLE_NEEDS_FIX +/* MinGW MS CRT always uses three digits after 'e' */ +#if defined(__MINGW32__) + #define JIM_SPRINTF_DOUBLE_NEEDS_FIX +#endif #ifdef _MSC_VER /* These are msvc vs gcc */ -- cgit v1.1