From d23d2959925564237bc3d981e4af0252847b28e5 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Sat, 17 Jan 2004 07:29:09 +0000 Subject: added #pragma comment(lib, "advapi32.lib") when compiling under VC++ --- win/tclWinInit.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 /* + * 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 -- cgit v0.12