The generic implementation requires wxComboCtrl, so pull it in if wxDatePickerCtrl is enabled. Explicitly testing for the platform here is ugly, as it duplicates the checks in wx/datectrl.h and will get out of date when/if they're changed there, but there just doesn't seem to be any other way. See #17159.