Author: manolo
Date: 2010-03-14 00:49:09 -0800 (Sun, 14 Mar 2010)
New Revision: 7259
Log:
Allow compilation with OS X 10.4 and before

Modified:
   branches/branch-1.3-Fl_Printer/src/fl_draw_image_mac.cxx

Modified: branches/branch-1.3-Fl_Printer/src/fl_draw_image_mac.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/fl_draw_image_mac.cxx    2010-03-14 
07:14:53 UTC (rev 7258)
+++ branches/branch-1.3-Fl_Printer/src/fl_draw_image_mac.cxx    2010-03-14 
08:49:09 UTC (rev 7259)
@@ -80,6 +80,13 @@
     lut = CGColorSpaceCreateDeviceRGB();
   // a release callback is necessary when the fl_gc is a print context because 
the image data
   // must be kept until the page is closed. Thus tmpBuf can't be deleted here. 
It's too early.
+#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
+  typedef void (*CGDataProviderReleaseDataCallback) (
+                                                    void *info,
+                                                    const void *data,
+                                                    size_t size
+  );
+#endif  
   CGDataProviderReleaseDataCallback releaseCB = ( cb ? dataReleaseCB : NULL);
   CGDataProviderRef src = CGDataProviderCreateWithData( 0L, array, 
linedelta*H, releaseCB);
   CGImageRef        img = CGImageCreate( W, H, 8, 8*delta, linedelta,

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

Reply via email to