]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/choice.h
test for wxLog interaction with wxYield better
[wxWidgets.git] / include / wx / choice.h
index b0d2a7077069187a8ad13266628102b4aed3090f..a99e477cd2336edcdd55fa5b03ace9da31f353fb 100644 (file)
@@ -20,6 +20,8 @@
     #pragma interface "choicebase.h"
 #endif
 
     #pragma interface "choicebase.h"
 #endif
 
+#if wxUSE_CHOICE
+
 #include "wx/ctrlsub.h"     // the base class
 
 // ----------------------------------------------------------------------------
 #include "wx/ctrlsub.h"     // the base class
 
 // ----------------------------------------------------------------------------
@@ -36,6 +38,9 @@ class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
 {
 public:
     // all generic methods are in wxControlWithItems
 {
 public:
     // all generic methods are in wxControlWithItems
+#ifdef __DARWIN__
+    virtual ~wxChoiceBase() {}
+#endif
 
     // single selection logic
     virtual void SetSelection(int n) = 0;
 
     // single selection logic
     virtual void SetSelection(int n) = 0;
@@ -74,5 +79,7 @@ public:
     #include "wx/stubs/choice.h"
 #endif
 
     #include "wx/stubs/choice.h"
 #endif
 
+#endif // wxUSE_CHOICE
+
 #endif
     // _WX_CHOICE_H_BASE_
 #endif
     // _WX_CHOICE_H_BASE_