summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2011-02-21 18:33:46 +0000
committerFabien Costantini <fabien@onepost.net>2011-02-21 18:33:46 +0000
commitcc79642a948b34be53de768394bb54dd50565f7c (patch)
tree1e7a54a2b1f498bf88c66bac31ac50dd6c0cff1b /src
parentc7fff914359831c8d6cbcad401ec9c2cf49ea1f2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx9
1 files changed, 8 insertions, 1 deletions
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 <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
#if defined(__GNUC__)