aboutsummaryrefslogtreecommitdiff
path: root/jim-win32compat.h
diff options
context:
space:
mode:
authorunknown <Administrator@.(none)>2011-12-14 10:01:57 +1000
committerSteve Bennett <steveb@workware.net.au>2011-12-16 13:10:13 +1000
commitb6ca9c7ed71cb4b612dee89b5569cbf599bfc386 (patch)
tree85146eded5b73c0646633c898715baf99a4ad2fa /jim-win32compat.h
parentd0ac7ddf7cd922aa4f9b691b6414c3c7f22b08f1 (diff)
downloadjimtcl-b6ca9c7ed71cb4b612dee89b5569cbf599bfc386.zip
jimtcl-b6ca9c7ed71cb4b612dee89b5569cbf599bfc386.tar.gz
jimtcl-b6ca9c7ed71cb4b612dee89b5569cbf599bfc386.tar.bz2
Fix double to string on mingw
The MS CRT always produces a 3 digit exponent for %e And update [format] tests to account for this difference
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r--jim-win32compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/jim-win32compat.h b/jim-win32compat.h
index 8dc0bde..717642c 100644
--- a/jim-win32compat.h
+++ b/jim-win32compat.h
@@ -12,6 +12,9 @@ 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
+
#ifdef _MSC_VER
/* These are msvc vs gcc */