1/*
2 * dllEntryPoint.c --
3 *
4 *	This file implements the Dll entry point as needed by Windows.
5 */
6
7#define WIN32_LEAN_AND_MEAN
8#include <windows.h>
9
10#ifdef _MSC_VER
11    /* Only do this when MSVC++ is compiling us. */
12#   define DllEntryPoint DllMain
13#   if defined(USE_TCL_STUBS) && (!defined(_MT) || !defined(_DLL) || defined(_DEBUG))
14	/*
15	 * This fixes a bug with how the Stubs library was compiled.
16	 * The requirement for msvcrt.lib from tclstubXX.lib should
17	 * be removed.
18	 */
19#	pragma comment(linker, "-nodefaultlib:msvcrt.lib")
20#   endif
21#endif
22
23/*
24 *----------------------------------------------------------------------
25 *
26 * DllEntryPoint --
27 *
28 *	This wrapper function is used by Windows to invoke the
29 *	initialization code for the DLL.  If we are compiling
30 *	with Visual C++, this routine will be renamed to DllMain.
31 *
32 * Results:
33 *	Returns TRUE;
34 *
35 * Side effects:
36 *	None.
37 *
38 *----------------------------------------------------------------------
39 */
40
41#ifndef STATIC_BUILD
42
43BOOL APIENTRY
44DllEntryPoint(hInst, reason, reserved)
45    HINSTANCE hInst;		/* Library instance handle. */
46    DWORD reason;		/* Reason this function is being called. */
47    LPVOID reserved;		/* Not used. */
48{
49    return TRUE;
50}
51
52#endif