From: Vadim Zeitlin Date: Sun, 28 Oct 2007 00:03:23 +0000 (+0000) Subject: use the same #if wxUSE_XXX checks in platform-specific files as around wxTextEntryBas... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/96a4cdebda5b3eca828bed1ee56dc550c36784bf use the same #if wxUSE_XXX checks in platform-specific files as around wxTextEntryBase implementation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp index ad8170294e..18ca8fafc4 100644 --- a/src/gtk/textentry.cpp +++ b/src/gtk/textentry.cpp @@ -23,6 +23,8 @@ #pragma hdrstop #endif +#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX + #ifndef WX_PRECOMP #include "wx/window.h" #include "wx/textctrl.h" @@ -284,3 +286,4 @@ void wxTextEntry::SendMaxLenEvent() win->GetEventHandler()->ProcessEvent(event); } +#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index d07b8a93c2..e08b413d17 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -27,6 +27,8 @@ #include "wx/string.h" #endif // WX_PRECOMP +#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX + #include "wx/textentry.h" #include "wx/msw/private.h" @@ -154,3 +156,5 @@ void wxTextEntry::SetMaxLength(unsigned long len) ::SendMessage(GetEditHwnd(), EM_LIMITTEXT, len, 0); } + +#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX