diff options
author | Evan Hunter <evan@ozhiker.com> | 2016-02-25 09:22:35 +0000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-03-27 11:01:48 +1000 |
commit | 62f87df83456d87289f3e01f97009c0a806e5fcb (patch) | |
tree | dcf454a7a8d6011fca6768d1d206512db4c4225e /jim-win32compat.h | |
parent | 4a687b39b373720201176f21c08c0f29712cbf32 (diff) |
Windows: Exponent modification is only required by MinGW
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r-- | jim-win32compat.h | 6 |
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 */ |