Author: manolo
Date: 2011-01-03 12:51:17 -0800 (Mon, 03 Jan 2011)
New Revision: 8175
Log:
Fixed warning in Fl_Gl_Choice.cxx

Modified:
   branches/branch-1.3/src/Fl_Gl_Choice.cxx
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_Gl_Choice.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Gl_Choice.cxx    2011-01-03 20:47:16 UTC (rev 
8174)
+++ branches/branch-1.3/src/Fl_Gl_Choice.cxx    2011-01-03 20:51:17 UTC (rev 
8175)
@@ -296,6 +296,7 @@
 }
 
 #  elif defined(__APPLE_QUARTZ__)
+#if !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 && __LP64__)
 static CGrafPtr fl_GetWindowPort(WindowRef window)
 {
   typedef CGrafPtr (*wf)(WindowRef);
@@ -303,6 +304,7 @@
   if ( ! f) f = (wf)Fl_X::get_carbon_function("GetWindowPort");
   return (*f)(window);
 }
+#endif
 
 // warning: the Quartz version should probably use Core GL (CGL) instead of AGL
 GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int 
layer) {

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-01-03 20:47:16 UTC (rev 8174)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-01-03 20:51:17 UTC (rev 8175)
@@ -864,7 +864,7 @@
 static int cocoaKeyboardHandler(NSEvent *theEvent);
 
 @interface FLTextView : NSTextView 
-// this subclass is needed under OS X 10.3 and 10.4 but not under 10.6 where 
the base class is enough
+// this subclass is needed under OS X <= 10.4 but not under >= 10.5 where the 
base class is enough
 {
 }
 @end

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

Reply via email to