Ticket #16213: cairo-kCGBitmapByteOrder32Host.diff

File cairo-kCGBitmapByteOrder32Host.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)

patch which could fix the Portfile

  • files/patch-cairo-quartz-image-surface.c.diff

     
     1--- src/cairo-quartz-image-surface.c    2008-04-04 17:45:23.000000000 -0500
     2+++ src/cairo-quartz-image-surface.c    2008-08-13 00:26:19.000000000 -0500
     3@@ -45,6 +45,11 @@
     4 #define SURFACE_ERROR_NO_MEMORY (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_NO_MEMORY)))
     5 #define SURFACE_ERROR_INVALID_FORMAT (_cairo_surface_create_in_error(_cairo_error(CAIRO_STATUS_INVALID_FORMAT)))
     6 
     7+#ifndef kCGBitmapByteOrder32Host
     8+#define kCGBitmapByteOrder32Host 0
     9+typedef uint32_t CGBitmapInfo;
     10+#endif
     11+
     12 CGImageRef
     13 _cairo_quartz_create_cgimage (cairo_format_t format,
     14                              unsigned int width,
  • Portfile

     
    4242    port:expat
    4343
    4444patchfiles \
     45    patch-cairo-quartz-image-surface.c.diff \
    4546    patch-FcFini.diff
    4647
    4748# The +universal variant is written in such a way that the port's global