]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/rawbmp.h
ssize_t is always defined in OSX
[wxWidgets.git] / include / wx / rawbmp.h
index 91a29f6f1906c2734233300d137fb8b6bff7c341..0815f09f17aa2394ab4f5ae3759e80c9f22a34bd 100644 (file)
@@ -160,6 +160,11 @@ typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxImagePixelFormat;
     // Cocoa is standard RGB or RGBA (normally it is RGBA)
     typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxNativePixelFormat;
 
+    #define wxPIXEL_FORMAT_ALPHA 3
+#elif defined(__WXGTK__)
+    // Under GTK+ 2.X we use GdkPixbuf, which should be RGBA
+    typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxNativePixelFormat;
+
     #define wxPIXEL_FORMAT_ALPHA 3
 #endif