aboutsummaryrefslogtreecommitdiff
path: root/jim-win32compat.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2013-11-07 09:04:46 +1000
committerSteve Bennett <steveb@workware.net.au>2013-11-07 09:27:54 +1000
commit92aaf45440c5ae9643d8782279adedf937d16854 (patch)
treedf4433d49bb96c7f2ac3acdf7bcc5312426aa3fb /jim-win32compat.h
parent93acd70060fae15b0985c74991486f2d68d468b2 (diff)
downloadjimtcl-92aaf45440c5ae9643d8782279adedf937d16854.zip
jimtcl-92aaf45440c5ae9643d8782279adedf937d16854.tar.gz
jimtcl-92aaf45440c5ae9643d8782279adedf937d16854.tar.bz2
Use __strtod() on mingw
As strtod() is unable to parse NaN and Inf Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r--jim-win32compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/jim-win32compat.h b/jim-win32compat.h
index 717642c..080cda0 100644
--- a/jim-win32compat.h
+++ b/jim-win32compat.h
@@ -61,7 +61,12 @@ typedef struct DIR {
DIR *opendir(const char *name);
int closedir(DIR *dir);
struct dirent *readdir(DIR *dir);
-#endif /* _MSC_VER */
+
+#elif defined(__MINGW32__)
+
+#define strtod __strtod
+
+#endif
#endif /* WIN32 */