mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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:
+8
-1
@@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user