Overview
| Artifact ID: | 56e8a75e32168879ab86ec7c7252fd962d0815c2 |
|---|---|
| Ticket: | 3372130fffffffffffffffffffffffffffffffff
Fix hypot math function with MSVC10 |
| User & Date: | anonymous on 2011-07-20 08:57:13 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Executing the hypot math function (e.g. [expr hypot(1,1)]) causes a segmentation fault when Tcl was compiled with MSVC 2010. Since MSVC 2010, there is a definition of hypot in math.h, and _hypot creates a conflict. More info: http://connect.microsoft.com/VisualStudio/feedback/details/633988/warning-in-math-h-line-162-re-nonstandard-extensions-used This patch puts a compiler check (_MSC_VER < 1600) around the define in win/tclWinPort.h.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- subsystem changed to: "16. Commands A-H"
- title changed to: "Fix hypot math function with MSVC10"
- type changed to: "Patch"