From eecdb0007ff012f7da0da0c9b1a17b372e24fa12 Mon Sep 17 00:00:00 2001
From: =?utf8?q?W=C5=82odzimierz=20Skiba?= <abx@abx.art.pl>
Date: Fri, 30 Jul 2004 19:14:42 +0000
Subject: [PATCH] Conditional compilation fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 samples/widgets/listbox.cpp | 6 ++++--
 src/msw/checklst.cpp        | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

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"
-- 
2.47.2