summaryrefslogtreecommitdiff
path: root/jim-win32compat.h
diff options
context:
space:
mode:
authorEvan Hunter <evan@ozhiker.com>2016-02-25 09:22:35 +0000
committerSteve Bennett <steveb@workware.net.au>2016-03-27 11:01:48 +1000
commit62f87df83456d87289f3e01f97009c0a806e5fcb (patch)
treedcf454a7a8d6011fca6768d1d206512db4c4225e /jim-win32compat.h
parent4a687b39b373720201176f21c08c0f29712cbf32 (diff)
Windows: Exponent modification is only required by MinGW
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r--jim-win32compat.h6
1 files 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 */