Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56e8a75e32168879ab86ec7c7252fd962d0815c2
Ticket: 3372130fffffffffffffffffffffffffffffffff
Fix hypot math function with MSVC10
User & Date: anonymous on 2011-07-20 08:57:13
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "Fix hypot math function with MSVC10"
  11. type changed to: "Patch"