diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-07-21 16:19:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-07-21 16:19:11 (GMT) |
commit | 5547130863ef858a3177ed6bbf63fa80a587ec4b (patch) | |
tree | 2778ce5e25383191b98d31a3bd772fc5e7890ccc | |
parent | a5cd0c254693b12d78c39cc4cddc07745e121668 (diff) | |
download | tcl-5547130863ef858a3177ed6bbf63fa80a587ec4b.zip tcl-5547130863ef858a3177ed6bbf63fa80a587ec4b.tar.gz tcl-5547130863ef858a3177ed6bbf63fa80a587ec4b.tar.bz2 |
[Bug 3372130] Fix hypot math function with MSVC10
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win/tclWinPort.h | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2011-07-21 Jan Nijtmans <nijtmans@users.sf.net> + + * win/tclWinPort.h: [Bug 3372130] Fix hypot math function with MSVC10 + 2011-07-15 Don Porter <dgp@users.sourceforge.net> * generic/tclCompile.c: Avoid segfaults when RecordByteCodeStats() diff --git a/win/tclWinPort.h b/win/tclWinPort.h index f228a22..0073f15 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -389,7 +389,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__) |