From cc79642a948b34be53de768394bb54dd50565f7c Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 21 Feb 2011 18:33:46 +0000 Subject: Say goodbye to weird comctl32.lib link clause in vc20xx builds. Now embeds it if it is supported, so no need to specify more than fltk libs in new fltk projects ! Makes it similar to other platforms linkage options and will probably improve learning curve of fltk new users. Improvements could be implemented for even easier/transparent linkage (fltk libs, fltk dlls?) of fltk apps. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index c9f1f64b3..7ded352ef 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -50,7 +50,14 @@ #endif #if !defined(NO_TRACK_MOUSE) -#include // TrackMouseEvent +# include // TrackMouseEvent +// fabien: Ms Visual Studio >= 2003 permit embedded lib reference +// that makes fltk use easier as only fltk libs are now requested +// This idea could be extended to fltk libs themselves, +// implementer should then care about DLL linkage flags ... +# if (_MSC_VER>=1310) +# pragma comment (lib, "comctl32.lib") +# endif #endif #if defined(__GNUC__) -- cgit v1.2.3