aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */