diff options
author | davygrvy <davygrvy@pobox.com> | 2004-01-17 07:29:09 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2004-01-17 07:29:09 (GMT) |
commit | d23d2959925564237bc3d981e4af0252847b28e5 (patch) | |
tree | ebcd944e1674ec1e6ad904c2db5e388d9e3b51de /win | |
parent | 72e7c5746f7b65dde16f1956a8ff610feba195f5 (diff) | |
download | tcl-d23d2959925564237bc3d981e4af0252847b28e5.zip tcl-d23d2959925564237bc3d981e4af0252847b28e5.tar.gz tcl-d23d2959925564237bc3d981e4af0252847b28e5.tar.bz2 |
added #pragma comment(lib, "advapi32.lib") when compiling
under VC++
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinInit.c | 9 |
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 |