summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
diff options
context:
space:
mode:
authorstanton <stanton>1999-04-23 01:57:32 (GMT)
committerstanton <stanton>1999-04-23 01:57:32 (GMT)
commit555140dc3f6d7dba78779f41f2add5f7e52b0cd2 (patch)
tree6061242f2e42ba3efe1ed3256e2fa09d66932e74 /win/tclWinInit.c
parent900205b76935aba2f912d67cb63c5a02f15c3e9a (diff)
downloadtcl-555140dc3f6d7dba78779f41f2add5f7e52b0cd2.zip
tcl-555140dc3f6d7dba78779f41f2add5f7e52b0cd2.tar.gz
tcl-555140dc3f6d7dba78779f41f2add5f7e52b0cd2.tar.bz2
* win/tclWinInit.c (TclpInitPlatform): Added call to TclWinInit
when building a static library since DllMain will not be invoked. This could break old code that explicitly called TclWinInit, but should be simpler in the long run.
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index a200098..4d5b908 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinInit.c,v 1.15 1999/04/21 22:00:29 stanton Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.16 1999/04/23 01:57:32 stanton Exp $
*/
#include "tclWinInt.h"
@@ -140,6 +140,16 @@ TclpInitPlatform()
*/
mainThreadId = GetCurrentThreadId();
+
+#ifdef STATIC_BUILD
+ /*
+ * If we are in a statically linked executable, then we need to
+ * explicitly initialize the Windows function tables here since
+ * DllMain() will not be invoked.
+ */
+
+ TclWinInit(GetModuleHandle(NULL));
+#endif
}
/*