From adf9e09990c79a3645eaa1f69b44d852c11a72f0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 May 2003 16:52:17 +0000 Subject: [PATCH] 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 --- include/wx/fontmap.h | 9 ++++++++- src/msw/bitmap.cpp | 2 ++ src/msw/caret.cpp | 4 ++++ src/msw/colordlg.cpp | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/include/wx/fontmap.h b/include/wx/fontmap.h index 5957456414..210985127d 100644 --- a/include/wx/fontmap.h +++ b/include/wx/fontmap.h @@ -200,6 +200,13 @@ private: // do NOT use! This is for backward compatibility, use wxFontMapper::Get() instead #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_ diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 1cccec1980..7df1437372 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -1090,11 +1090,13 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const // wxBitmap accessors // ---------------------------------------------------------------------------- +#if wxUSE_PALETTE wxPalette* wxBitmap::GetPalette() const { return GetBitmapData() ? &GetBitmapData()->m_bitmapPalette : (wxPalette *) NULL; } +#endif wxMask *wxBitmap::GetMask() const { diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index ee761165a1..dac2949001 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -35,6 +35,8 @@ #include "wx/caret.h" +#if wxUSE_CARET + #include "wx/msw/private.h" // --------------------------------------------------------------------------- @@ -192,3 +194,5 @@ void wxCaret::DoSize() OnSetFocus(); } } + +#endif diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index e5c1513289..ea313873c3 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -42,6 +42,8 @@ #include "wx/msgdlg.h" #endif +#if wxUSE_COLOURDLG + #include #if !defined(__WIN32__) || defined(__SALFORDC__) @@ -226,3 +228,4 @@ void wxColourDialog::DoGetClientSize(int *width, int *height) const *height = 299; } +#endif -- 2.45.2