]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetimectrl.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / datetimectrl.h
index 90da113f99135105d21e0636ecf5b9575fed5d28..a3bdac2d47964a820ffed77a189d584b2f50fc58 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "wx/defs.h"
 
-#if wxUSE_DATEPICKCTRL
+#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
 
 #define wxNEEDS_DATETIMEPICKCTRL
 
@@ -35,14 +35,14 @@ public:
     virtual wxDateTime GetValue() const = 0;
 };
 
-// Only MSW currently has any code to share between wxDatePickerCtrl and
-// wxTimePickerCtrl, under the other platforms this class is trivial.
 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
     #include "wx/msw/datetimectrl.h"
+#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
+    #include "wx/osx/datetimectrl.h"
 #else
     typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
 #endif
 
-#endif // wxUSE_DATEPICKCTRL
+#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
 
 #endif // _WX_DATETIME_CTRL_H_