X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfbe03c9c3ffecd6363dcc63e6fc27b8c6ed70aa..b704229ee25ef8e5765ec09e9c164f59063564e8:/src/xpm/simx.h diff --git a/src/xpm/simx.h b/src/xpm/simx.h index 23e8a1a297..ced9b39157 100644 --- a/src/xpm/simx.h +++ b/src/xpm/simx.h @@ -39,7 +39,12 @@ #ifdef FOR_MSW +#if defined(__OS2__) +#define INCL_OS2 +#include +#else #include "windows.h" /* MS windows GDI types */ +#endif /* * minimal portability layer between ansi and KR C @@ -72,7 +77,12 @@ typedef void *Visual; /* not used yet, is for GRAY, COLOR, typedef void *Colormap; /* should be COLORPALETTE, not done * yet */ +#if !defined(__OS2__) typedef COLORREF Pixel; +#else +typedef unsigned long COLORREF; +typedef unsigned long Pixel; +#endif #define PIXEL_ALREADY_TYPEDEFED /* to let xpm.h know about it */