diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-07-21 16:29:41 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2011-07-21 16:29:41 (GMT) |
| commit | b7c83c5f9a0f6f2c3d04ccab89780eda163c0c67 (patch) | |
| tree | 7ba41485689282b10d5bdc040bb399428351f258 | |
| parent | 9eab705b3e253d233b0f5ca10e0f38770e65d471 (diff) | |
| parent | 5692cee3026a077ddc9c190d32699c672439ffaa (diff) | |
| download | tcl-b7c83c5f9a0f6f2c3d04ccab89780eda163c0c67.zip tcl-b7c83c5f9a0f6f2c3d04ccab89780eda163c0c67.tar.gz tcl-b7c83c5f9a0f6f2c3d04ccab89780eda163c0c67.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-19 Don Porter <dgp@users.sourceforge.net> * generic/tclUtil.c: [Bug 3371644] Repair failure to properly handle 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__) |
