missing #if's needed for compilation with some wxUSE_XXX set to 0 (patch 728413)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-05-01 16:52:17 +00:00
parent ea39221211
commit adf9e09990
4 changed files with 17 additions and 1 deletions

View File

@@ -200,6 +200,13 @@ private:
// do NOT use! This is for backward compatibility, use wxFontMapper::Get() instead // do NOT use! This is for backward compatibility, use wxFontMapper::Get() instead
#define wxTheFontMapper (wxFontMapper::Get()) #define wxTheFontMapper (wxFontMapper::Get())
#endif // wxUSE_FONTMAP #else // !wxUSE_FONTMAP
#if wxUSE_GUI
// wxEncodingToCodepage (utils.cpp) needs wxGetNativeFontEncoding
#include "wx/fontenc.h"
#endif
#endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
#endif // _WX_FONTMAPPER_H_ #endif // _WX_FONTMAPPER_H_

View File

@@ -1090,11 +1090,13 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
// wxBitmap accessors // wxBitmap accessors
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if wxUSE_PALETTE
wxPalette* wxBitmap::GetPalette() const wxPalette* wxBitmap::GetPalette() const
{ {
return GetBitmapData() ? &GetBitmapData()->m_bitmapPalette return GetBitmapData() ? &GetBitmapData()->m_bitmapPalette
: (wxPalette *) NULL; : (wxPalette *) NULL;
} }
#endif
wxMask *wxBitmap::GetMask() const wxMask *wxBitmap::GetMask() const
{ {

View File

@@ -35,6 +35,8 @@
#include "wx/caret.h" #include "wx/caret.h"
#if wxUSE_CARET
#include "wx/msw/private.h" #include "wx/msw/private.h"
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -192,3 +194,5 @@ void wxCaret::DoSize()
OnSetFocus(); OnSetFocus();
} }
} }
#endif

View File

@@ -42,6 +42,8 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#endif #endif
#if wxUSE_COLOURDLG
#include <windows.h> #include <windows.h>
#if !defined(__WIN32__) || defined(__SALFORDC__) #if !defined(__WIN32__) || defined(__SALFORDC__)
@@ -226,3 +228,4 @@ void wxColourDialog::DoGetClientSize(int *width, int *height) const
*height = 299; *height = 299;
} }
#endif