From 02bc33334a9bfda0eff8061d2a5293cb62506547 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Thu, 15 Jan 2004 21:46:22 +0000 Subject: * win/tkWinSendCom.c: Placed the requirement for the special COM libraries into the object file itself with #paragma comment (lib, ...) when built with VC++. This will simplify linking for users of the static library. uuid.lib is required for VC5.2, but is implicit with VC6. * win/makefile.vc: Removed 'ole32.lib oleaut32.lib uuid.lib' from $(baselibs). --- win/makefile.vc | 8 ++++---- win/tkWinSendCom.c | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/win/makefile.vc b/win/makefile.vc index 27bad09..3ea888d 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,7 @@ # Copyright (c) 2001-2003 David Gravereaux. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: makefile.vc,v 1.79 2004/01/13 13:43:36 vincentdarley Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.80 2004/01/15 21:46:22 davygrvy Exp $ #------------------------------------------------------------------------------ !if "$(MSVCDIR)" == "" @@ -433,7 +433,7 @@ dlllflags = $(lflags) -dll conlflags = $(lflags) -subsystem:console guilflags = $(lflags) -subsystem:windows -baselibs = kernel32.lib user32.lib ole32.lib oleaut32.lib uuid.lib +baselibs = kernel32.lib user32.lib guilibs = $(baselibs) gdi32.lib @@ -799,10 +799,10 @@ $< #--------------------------------------------------------------------- clean: - -@$(RMDIR) $(TMP_DIR) + -$(RMDIR) $(TMP_DIR) hose: clean - -@$(RMDIR) $(OUT_DIR) + -$(RMDIR) $(OUT_DIR) .SUFFIXES: diff --git a/win/tkWinSendCom.c b/win/tkWinSendCom.c index b5e0686..9ad1f15 100644 --- a/win/tkWinSendCom.c +++ b/win/tkWinSendCom.c @@ -17,11 +17,17 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinSendCom.c,v 1.3 2003/11/20 19:36:58 vincentdarley Exp $ + * RCS: @(#) $Id: tkWinSendCom.c,v 1.4 2004/01/15 21:46:22 davygrvy Exp $ */ #include "tkWinSendCom.h" +#ifdef _MSC_VER +# pragma comment (lib, "ole32.lib") +# pragma comment (lib, "oleaut32.lib") +# pragma comment (lib, "uuid.lib") +#endif + /* * ---------------------------------------------------------------------- * Non-public prototypes. -- cgit v0.12