]> git.saurik.com Git - wxWidgets.git/commitdiff
mingw32 compilation fixes
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Nov 1999 09:53:35 +0000 (09:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Nov 1999 09:53:35 +0000 (09:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/control.h
include/wx/msw/gdiimage.h
src/msw/bmpbuttn.cpp
src/msw/xpmhand.cpp

index f597ccf02a06429ec210e9844c6a528986bb72b5..4c566bfb15e9104a5c1e4c0fba4389512fbc6afe 100644 (file)
@@ -16,6 +16,8 @@
     #pragma interface "control.h"
 #endif
 
+#include "wx/dynarray.h"
+
 // General item class
 class WXDLLEXPORT wxControl : public wxControlBase
 {
index 68d36488eb1b20eef33425bbd87def4eeee2a144..0dca4c79312d094d2a0edf194e8cac008cedc35a 100644 (file)
@@ -21,6 +21,8 @@
 #endif
 
 #include "wx/gdiobj.h"          // base class
+#include "wx/gdicmn.h"          // wxBITMAP_TYPE_INVALID
+#include "wx/list.h"
 
 class WXDLLEXPORT wxGDIImageRefData;
 class WXDLLEXPORT wxGDIImageHandler;
index c476b1aeed92cdfebcf3636dada2bacc69a9742a..5f95f45a58c1e338525721bff7083ed01e7a7810 100644 (file)
@@ -21,7 +21,7 @@
 #endif
 
 #ifndef WX_PRECOMP
-#include "wx/bmpbuttn.h"
+    #include "wx/bmpbuttn.h"
 #endif
 
 #include "wx/msw/private.h"
index 759d10e98514d88e7b13466f34b1876b1a43cdf6..5a1b6ab7426af7cf113a1e357627d466ca94dc69 100644 (file)
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation "xpmhand.h"
+    #pragma implementation "xpmhand.h"
 #endif
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/setup.h"
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/palette.h"
-#include "wx/dcmemory.h"
-#include "wx/bitmap.h"
-#include "wx/icon.h"
+    #include "wx/list.h"
+    #include "wx/utils.h"
+    #include "wx/app.h"
+    #include "wx/palette.h"
+    #include "wx/dcmemory.h"
+    #include "wx/bitmap.h"
+    #include "wx/icon.h"
 #endif
 
 #include "wx/msw/private.h"
 #include "wx/log.h"
 
-#include "assert.h"
-
 #if wxUSE_XPM_IN_MSW
-#define FOR_MSW 1
-#include "../xpm/xpm34.h"
+    #define FOR_MSW 1
+    #include "../xpm/xpm34.h"
 #endif
 
 #include "wx/xpmhand.h"
 #include "wx/msw/dib.h"
 
+#if wxUSE_XPM_IN_MSW
+
 static void XpmToBitmap(wxBitmap *bitmap,
                         const XImage *ximage,
                         const XpmAttributes& xpmAttr)
@@ -64,10 +62,14 @@ static void XpmToBitmap(wxBitmap *bitmap,
     refData->m_numColors = xpmAttr.npixels;
 }
 
+#endif // wxUSE_XPM_IN_MSW
+
 IMPLEMENT_DYNAMIC_CLASS(wxXPMFileHandler, wxBitmapHandler)
 
-bool wxXPMFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
-    int desiredWidth, int desiredHeight)
+bool wxXPMFileHandler::LoadFile(wxBitmap *bitmap,
+                                const wxString& name,
+                                long flags,
+                                int desiredWidth, int desiredHeight)
 {
 #if wxUSE_XPM_IN_MSW
     XImage *ximage;
@@ -99,7 +101,10 @@ bool wxXPMFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long fla
     return FALSE;
 }
 
-bool wxXPMFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette)
+bool wxXPMFileHandler::SaveFile(wxBitmap *bitmap,
+                                const wxString& name,
+                                int type,
+                                const wxPalette *palette)
 {
 #if wxUSE_XPM_IN_MSW
     HDC     dc = NULL;
@@ -138,7 +143,12 @@ bool wxXPMFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, int type
 
 IMPLEMENT_DYNAMIC_CLASS(wxXPMDataHandler, wxBitmapHandler)
 
-bool wxXPMDataHandler::Create(wxBitmap *bitmap, void *data, long flags, int width, int height, int depth)
+bool wxXPMDataHandler::Create(wxBitmap *bitmap,
+                              void *data,
+                              long flags,
+                              int width,
+                              int height,
+                              int depth)
 {
 #if wxUSE_XPM_IN_MSW
   XImage *ximage;