From 555140dc3f6d7dba78779f41f2add5f7e52b0cd2 Mon Sep 17 00:00:00 2001 From: stanton Date: Fri, 23 Apr 1999 01:57:32 +0000 Subject: * 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. --- win/tclWinInit.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 } /* -- cgit v0.12