-#if defined(__WXMSW__)
- #if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
- #include "wx/generic/dirdlgg.h"
- #define wxDirDialog wxGenericDirDialog
- #else
- #include "wx/msw/dirdlg.h"
- #endif
-#elif defined(__WXMOTIF__)
- #include "wx/generic/dirdlgg.h"
-#elif defined(__WXGTK__)
- #include "wx/generic/dirdlgg.h"
-#elif defined(__WXX11__)
+// Universal and non-port related switches with need for generic implementation
+#if defined(__WXMSW__) && (defined(__WXUNIVERSAL__) || \
+ defined(__SALFORDC__) || \
+ !wxUSE_OLE || \
+ (defined (__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS))
+