]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dib.cpp
fix for precompiled headers
[wxWidgets.git] / src / msw / dib.cpp
index 58d92874cb8414cff42d29526835624d256809c9..d214648061187118587c07bbd89207e34b56d397 100644 (file)
@@ -26,7 +26,6 @@
  *******************************************************************************/
 
 // For compilers that support precompilation, includes "wx.h".
-#define IN_WX_MAIN_CPP
 #include "wx/wxprec.h"
 
 #if defined(__BORLANDC__)
@@ -682,7 +681,7 @@ HPALETTE MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
     ** some good color choices.
     */
     else
-       return(GetStockObject(DEFAULT_PALETTE));
+       return((HPALETTE) GetStockObject(DEFAULT_PALETTE));
 }
 
 bool wxLoadIntoBitmap(char *filename, wxBitmap *bitmap, wxColourMap **pal)