]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xpm/simx.h
wxMenuItem::GetLabelFromText() added/documented, bug in wxMenu::FindItem() fixed
[wxWidgets.git] / src / xpm / simx.h
index 23e8a1a297cd273e9ed21a5d61c684b96ae908f8..ced9b391573482b330eb8fe2aa9bfb7663f62d57 100644 (file)
 
 #ifdef FOR_MSW
 
+#if defined(__OS2__)
+#define INCL_OS2
+#include<os2.h>
+#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 */