summaryrefslogtreecommitdiffstats
path: root/win/tclWinReg.c
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-01-15 22:20:38 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-01-15 22:20:38 (GMT)
commit1670aa41a074dca8bcb56402cb91c1970a588934 (patch)
treeeb1de93edebc79dde8f9d4b03f70942a9f5dc83f /win/tclWinReg.c
parent9b53208dd029316e18144d8dc5f6973169e1912a (diff)
downloadtcl-1670aa41a074dca8bcb56402cb91c1970a588934.zip
tcl-1670aa41a074dca8bcb56402cb91c1970a588934.tar.gz
tcl-1670aa41a074dca8bcb56402cb91c1970a588934.tar.bz2
* win/tclWinReg.c: Placed the requirement for advapi.lib
into the object file itself with #paragma comment (lib, ...) when built with VC++. This will simplify linking for users of the static library. * win/makefile.vc: Removed 'advapi.lib' from $(baselibs).
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r--win/tclWinReg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 4a2c841..32aa940 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -11,10 +11,13 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinReg.c,v 1.24 2003/11/10 22:55:48 dgp Exp $
+ * RCS: @(#) $Id: tclWinReg.c,v 1.25 2004/01/15 22:20:38 davygrvy Exp $
*/
#include <tclPort.h>
+#ifdef _MSC_VER
+# pragma comment (lib, "advapi32.lib")
+#endif
#include <stdlib.h>
/*
@@ -212,7 +215,7 @@ int
Registry_Init(
Tcl_Interp *interp)
{
- if (!Tcl_InitStubs(interp, "8.0", 0)) {
+ if (Tcl_InitStubs(interp, "8.1", 0) == NULL) {
return TCL_ERROR;
}