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
This commit is contained in:
Fabien Costantini
2011-02-21 18:33:46 +00:00
parent c7fff91435
commit cc79642a94
+8 -1
View File
@@ -50,7 +50,14 @@
#endif #endif
#if !defined(NO_TRACK_MOUSE) #if !defined(NO_TRACK_MOUSE)
#include <commctrl.h> // TrackMouseEvent # include <commctrl.h> // 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 #endif
#if defined(__GNUC__) #if defined(__GNUC__)