More fixes for gcc-2.95.2-mingw
Closed / Fixed217959ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:46:38
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
welch Closed ticket [217959ffff].
[History diff]2000-10-26 08:10:56
dgp Ticket [217959ffff]: 3 changes
[History diff]2001-04-05 06:55:06
Log in (anonymous is fine) to add a comment.