Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 66bc11f27d0131a3e6b373d3dca9f9aeb0a22a27
Ticket: 217959ffffffffffffffffffffffffffffffffff
More fixes for gcc-2.95.2-mingw
User & Date: nobody on 2000-10-26 00:46:38
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4211 RFE
    Version: 8.3
    SubmitDate: '2000-02-22'
    LastModified: '2000-03-31'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 4234
    OS: All Windows
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-31'
    
    
    Name:
    Jan Nijtmans
    
    ReproducibleScript:
    When compiling Tcl8.3.0 with gcc-2.95.2-mingw serveral problems show up. For some of which gcc is to blame, for
    others Tcl is to blame. The two most notable things are:
    - environ, hypot and exception require an underscore both for VC++ and mingw.
    - when compiling without msvcrt.dll, the functions _beginsthreadex() and _endthreades() are missing
    This patch fixes both of those problems. The use of CreateThread() and ExitThread() introduce
    memory leaks, but that's better than not compile at all.
    
    Patch:
    *** win/tclWinPort.h.origFri Oct 29 05:05:13 1999
    --- win/tclWinPort.hSun Feb 20 10:13:22 2000
    ***************
    *** 335,346 ****
       * EDEADLK as the same value, which confuses Tcl_ErrnoId().
       */
    
    ! #ifdef _MSC_VER
      #    define environ _environ
      #    define hypot _hypot
      #    define exception _exception
      #    undef EDEADLOCK
    ! #endif /* _MSC_VER */
    
      /*
       *---------------------------------------------------------------------------
    --- 335,351 ----
       * EDEADLK as the same value, which confuses Tcl_ErrnoId().
       */
    
    ! #if defined (_MSC_VER) || defined (__MINGW32__)
      #    define environ _environ
      #    define hypot _hypot
      #    define exception _exception
      #    undef EDEADLOCK
    ! #endif /* _MSC_VER || __MINGW32__ */
    ! 
    ! #if defined (__MINGW32__) && !defined (__MSVCRT__)
    ! #define _beginthreadex(a,b,c,d,e,f) CreateThread(a,b,c,(DWORD *)d,e,(DWORD *)f)
    ! #define _endthreadex(a) ExitThread(a)
    ! #endif
    
      /*
       *---------------------------------------------------------------------------
    
    PatchFiles:
    tclWinPort.h
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "More fixes for gcc-2.95.2-mingw"
  11. type changed to: "Bug"