summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavygrvy@pobox.com <davygrvy>2004-01-17 07:29:09 (GMT)
committerdavygrvy@pobox.com <davygrvy>2004-01-17 07:29:09 (GMT)
commitc72adaf0ad25ec3df893fa387ac0ce972ea48c14 (patch)
treeebcd944e1674ec1e6ad904c2db5e388d9e3b51de
parentf1f3adb156dddcc8893ae5c098e97e8ce493cfb6 (diff)
downloadtcl-c72adaf0ad25ec3df893fa387ac0ce972ea48c14.zip
tcl-c72adaf0ad25ec3df893fa387ac0ce972ea48c14.tar.gz
tcl-c72adaf0ad25ec3df893fa387ac0ce972ea48c14.tar.bz2
added #pragma comment(lib, "advapi32.lib") when compiling
under VC++
-rw-r--r--win/tclWinInit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index d84925b..ee83490 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -7,7 +7,7 @@
* Copyright (c) 1998-1999 by Scriptics Corporation.
* All rights reserved.
*
- * RCS: @(#) $Id: tclWinInit.c,v 1.43 2003/11/10 20:34:17 dgp Exp $
+ * RCS: @(#) $Id: tclWinInit.c,v 1.44 2004/01/17 07:29:09 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -16,6 +16,13 @@
#include <lmcons.h>
/*
+ * GetUserName() is found in advapi32.dll
+ */
+#ifdef _MSC_VER
+# pragma comment(lib, "advapi32.lib")
+#endif
+
+/*
* The following declaration is a workaround for some Microsoft brain damage.
* The SYSTEM_INFO structure is different in various releases, even though the
* layout is the same. So we overlay our own structure on top of it so we