Artifacts Associated With Ticket 3372130fffffffffffffffffffffffffffffffff
Ticket change [56e8a75e32] (rid 94406) by anonymous on 2011-07-20 08:57:13:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "Fix hypot math function with MSVC10"
- type initialized to: "Patch"
Add attachment "hypot.patch" [8a54cf4eeb] (rid 127379) by anonymous on 2011-07-20 15:57:14.
Ticket change [5e1ac5d94c] (rid 115581) by anonymous on 2011-07-20 15:57:15:
- icomment:
File Added - 418768: hypot.patch
- login: ""
- mimetype: "text/plain"
- username: ""
- icomment:
Ticket change [0ab64ece0e] (rid 113872) by nijtmans on 2011-07-21 23:07:39:
- assignee changed to: "nijtmans"
- subsystem changed to: "52. Portability Support"
Ticket change [ad2d26c964] (rid 101428) by nijtmans on 2011-07-21 23:42:34:
- closedate changed to: "2011-07-21T16:42:34"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Although I cannot reproduce the problem (I'm using VS10 express 32-bit on Windows 7, maybe you are using another), I agree that providing hypot() though a macro while MSVC does it as well is asking for trouble. So, added the protection, modified such that the hypot macro is not provided for any other compiler than MSVC. Applied to all open branches
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"