summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-07-21 16:29:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-07-21 16:29:41 (GMT)
commit88e2731bdd4fc9b0efca660a91bf878850d4f6a1 (patch)
tree7ba41485689282b10d5bdc040bb399428351f258 /win/tclWinPort.h
parent66bf88283d33ff4538e807214de979b630e80158 (diff)
parente5bb0d181bdfe2f80cfa4c4ca19f912966f28915 (diff)
downloadtcl-88e2731bdd4fc9b0efca660a91bf878850d4f6a1.zip
tcl-88e2731bdd4fc9b0efca660a91bf878850d4f6a1.tar.gz
tcl-88e2731bdd4fc9b0efca660a91bf878850d4f6a1.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 8fdf391..1c88ab2 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -411,7 +411,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__)