X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0240e8b1aa935d43689b0b8ec36de3c06c1a4758..adebd2d72c8897f30bd9e673d1e16ef2794d72ab:/src/mac/xpm/simx.h diff --git a/src/mac/xpm/simx.h b/src/mac/xpm/simx.h index a70ad187a6..90324a5096 100644 --- a/src/mac/xpm/simx.h +++ b/src/mac/xpm/simx.h @@ -89,8 +89,12 @@ typedef struct { unsigned int depth; } XImage; -#elif macintosh - +#elif defined(macintosh) || defined(__APPLE__) +#if defined(__APPLE__) +#include +#elif !defined(__MWERKS__) +#include +#endif /* define Mac types for X window types */ typedef GDevice* Display; /* this should be similar */ @@ -136,7 +140,7 @@ extern "C" { FUNC(XQueryColors, void, (Display *display, Colormap *colormap, XColor *xcolors, int ncolors)); FUNC(XFreeColors, int, (Display *d, Colormap cmap, - unsigned long pixels[], + Pixel *pixels, int npixels, unsigned long planes)); /* XImage */ FUNC(XCreateImage, XImage *, (Display *, Visual *, int depth, int format, @@ -161,7 +165,7 @@ extern "C" { #ifndef Bool #ifdef FOR_MSW typedef BOOL Bool; /* take MSW bool */ -#elif macintosh +#elif defined(macintosh) || defined(__APPLE__) typedef Boolean Bool; /* take MSW bool */ #endif #endif