summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorstanton <stanton>1998-07-09 19:02:42 (GMT)
committerstanton <stanton>1998-07-09 19:02:42 (GMT)
commitb94c5efc08f58e4f0d76566624ab649b40681f82 (patch)
treed9ea6c2e1e5dd7b43076bfc50bdd1f5a932d438b /win
parentaa1335bf624cbceccff1a0b7b7d3e890c1eef255 (diff)
downloadtcl-b94c5efc08f58e4f0d76566624ab649b40681f82.zip
tcl-b94c5efc08f58e4f0d76566624ab649b40681f82.tar.gz
tcl-b94c5efc08f58e4f0d76566624ab649b40681f82.tar.bz2
added STATIC_BUILD test around DllMain, etc.
Diffstat (limited to 'win')
-rw-r--r--win/tclWin32Dll.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index 92dae25..de7fce5 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -53,6 +53,10 @@ static void UnloadLibraries _ANSI_ARGS_((void));
BOOL APIENTRY DllMain _ANSI_ARGS_((HINSTANCE hInst,
DWORD reason, LPVOID reserved));
+
+#ifdef __WIN32__
+#ifndef STATIC_BUILD
+
/*
*----------------------------------------------------------------------
@@ -124,6 +128,9 @@ DllMain(hInst, reason, reserved)
return TRUE;
}
+
+#endif /* !STATIC_BUILD */
+#endif /* __WIN32__ */
/*
*----------------------------------------------------------------------