summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-14 09:58:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-14 09:58:47 (GMT)
commitbe577d6027b283ab185db2c701ed4ac24f529dc7 (patch)
tree05d55918dc35938dd2e61174865b889a6c954476 /win/tclWinThrd.c
parent710ec0ef20f34930e898bac7dcb4393caee21204 (diff)
parent99d3f3c9f3dc5752e4887e6dec6661fabd80cd50 (diff)
downloadtcl-be577d6027b283ab185db2c701ed4ac24f529dc7.zip
tcl-be577d6027b283ab185db2c701ed4ac24f529dc7.tar.gz
tcl-be577d6027b283ab185db2c701ed4ac24f529dc7.tar.bz2
Fix [7393be0be6e7f91cbb2016fa777896e3895929e3|7393be0be6]: Tcl Thread library doesn't work in Debug build on Windows_x64
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r--win/tclWinThrd.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 987734d..dbc5f26 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -164,7 +164,6 @@ TclWinThreadStart(
* from TclpThreadCreate */
{
WinThread *winThreadPtr = (WinThread *) lpParameter;
- unsigned int fpmask;
LPTHREAD_START_ROUTINE lpOrigStartAddress;
LPVOID lpOrigParameter;
@@ -172,13 +171,11 @@ TclWinThreadStart(
return TCL_ERROR;
}
- fpmask = _MCW_EM | _MCW_RC | _MCW_PC;
-
-#if defined(_MSC_VER) && _MSC_VER >= 1200
- fpmask |= _MCW_DN;
+ _controlfp(winThreadPtr->fpControl, _MCW_EM | _MCW_RC | 0x03000000 /* _MCW_DN */
+#if !defined(_WIN64)
+ | _MCW_PC
#endif
-
- _controlfp(winThreadPtr->fpControl, fpmask);
+ );
lpOrigStartAddress = winThreadPtr->lpStartAddress;
lpOrigParameter = winThreadPtr->lpParameter;