]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/choice.h
Trying to hide evidence of my negative programming skills...
[wxWidgets.git] / include / wx / choice.h
index b0d2a7077069187a8ad13266628102b4aed3090f..c1195637362686ebff224845e372b83564d974f9 100644 (file)
@@ -20,6 +20,8 @@
     #pragma interface "choicebase.h"
 #endif
 
+#if wxUSE_CHOICE
+
 #include "wx/ctrlsub.h"     // the base class
 
 // ----------------------------------------------------------------------------
@@ -36,6 +38,9 @@ class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
 {
 public:
     // all generic methods are in wxControlWithItems
+#ifdef __WXMAC_X__
+    virtual ~wxChoiceBase() {}
+#endif
 
     // single selection logic
     virtual void SetSelection(int n) = 0;
@@ -74,5 +79,7 @@ public:
     #include "wx/stubs/choice.h"
 #endif
 
+#endif // wxUSE_CHOICE
+
 #endif
     // _WX_CHOICE_H_BASE_