summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-07-21 16:36:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-07-21 16:36:49 (GMT)
commit72096946ccb5a10021b7bcf2ba22cd11ccdc1726 (patch)
treed378b5cc15e600e89e85ea9ebf6c9e92123b1025 /win/tclWinPort.h
parent1cee989f7315e650af66b37d9d5a776683255005 (diff)
parent7441d4d95430c1fff6efe42569411d4cc98f23fb (diff)
downloadtcl-72096946ccb5a10021b7bcf2ba22cd11ccdc1726.zip
tcl-72096946ccb5a10021b7bcf2ba22cd11ccdc1726.tar.gz
tcl-72096946ccb5a10021b7bcf2ba22cd11ccdc1726.tar.bz2
[Bug 3372130] Fix hypot math function with MSVC10
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 4fe8754..ca58470 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -454,7 +454,9 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
# define environ _environ
-# define hypot _hypot
+# if defined(_MSC_VER) && (_MSC_VER < 1600)
+# define hypot _hypot
+# endif
# define exception _exception
# undef EDEADLOCK
# if defined(__MINGW32__) && !defined(__MSVCRT__)