Skip to content
Tcl Source Code History Of Ticket 3372130fffffffff
Login

History Of Ticket 3372130fffffffff

Artifacts Associated With Ticket 3372130fffffffff

  1. Ticket change [56e8a75e32] (rid 94406) by anonymous on 2011-07-20 08:57:13:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "Fix hypot math function with MSVC10"
    11. type initialized to: "Patch"
  2. Add attachment "hypot.patch" [8a54cf4eeb] (rid 127379) by anonymous on 2011-07-20 15:57:14.

  3. Ticket change [5e1ac5d94c] (rid 115581) by anonymous on 2011-07-20 15:57:15:

    1. icomment:
      
      
      File Added - 418768: hypot.patch
      
      
      
    2. login: ""
    3. mimetype: "text/plain"
    4. username: ""
  4. Ticket change [0ab64ece0e] (rid 113872) by nijtmans on 2011-07-21 23:07:39:

    1. assignee changed to: "nijtmans"
    2. subsystem changed to: "52. Portability Support"
  5. Ticket change [ad2d26c964] (rid 101428) by nijtmans on 2011-07-21 23:42:34:

    1. closedate changed to: "2011-07-21T16:42:34"
    2. closer changed to: "nijtmans"
    3. 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
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"