Author: fabien
Date: 2011-02-21 10:33:46 -0800 (Mon, 21 Feb 2011)
New Revision: 8461
Log:
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. 

Modified:
   branches/branch-1.3/src/Fl_win32.cxx

Modified: branches/branch-1.3/src/Fl_win32.cxx
===================================================================
--- branches/branch-1.3/src/Fl_win32.cxx        2011-02-21 16:36:10 UTC (rev 
8460)
+++ branches/branch-1.3/src/Fl_win32.cxx        2011-02-21 18:33:46 UTC (rev 
8461)
@@ -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__)

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to