]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/checklst.cpp
Correct wxCheckListBox insertion.
[wxWidgets.git] / samples / checklst / checklst.cpp
index e09683c63c86aeac3cd5bf262fa48f2166f78b5b..b3373298dadca2e7719009135dcacd989ca4722d 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:     wxWindows license
 ///////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-    //#pragma implementation
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 #include  "wx/menuitem.h"
 #include  "wx/checklst.h"
 
+#if !wxUSE_CHECKLISTBOX
+    #error "This sample can't be built without wxUSE_CHECKLISTBOX"
+#endif // wxUSE_CHECKLISTBOX
+
 // Define a new application type
 class CheckListBoxApp: public wxApp
 {