From: Włodzimierz Skiba Date: Fri, 30 Jul 2004 19:14:42 +0000 (+0000) Subject: Conditional compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eecdb0007ff012f7da0da0c9b1a17b372e24fa12 Conditional compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index b717ecb097..65ae57555e 100644 --- a/samples/widgets/listbox.cpp +++ b/samples/widgets/listbox.cpp @@ -24,6 +24,8 @@ #pragma hdrstop #endif +#if wxUSE_LISTBOX + // for all others, include the necessary headers #ifndef WX_PRECOMP #include "wx/log.h" @@ -43,7 +45,7 @@ #include "wx/checklst.h" #include "widgets.h" -#if 1 + #include "icons/listbox.xpm" // ---------------------------------------------------------------------------- @@ -517,4 +519,4 @@ void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event)) CreateLbox(); } -#endif +#endif // wxUSE_LISTBOX diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index d6e48edde8..b5f7b1ed1a 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -28,7 +28,7 @@ #pragma hdrstop #endif -#if wxUSE_OWNER_DRAWN +#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN #ifndef WX_PRECOMP #include "wx/object.h"