#ifndef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
#elif wxUSE_NATIVE_STATUSBAR
-# if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || !defined(__WXMAC__))
+# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
+ defined(__WXMAC__) || \
+ defined(__WXPALMOS__) )
# undef wxUSE_NATIVE_STATUSBAR
# define wxUSE_NATIVE_STATUSBAR 0
# endif
# endif
#endif /* wxUSE_XRC */
+/* The generic date picker uses a popup window */
+#if !wxUSE_POPUPWIN
+# undef wxUSE_DATEPICKCTRL
+# define wxUSE_DATEPICKCTRL 0
+#endif /* !wxUSE_POPUPWIN */
+
#endif /* wxUSE_GUI */