-#ifndef __MDIH_BASE__
-#define __MDIH_BASE__
-
-#if defined(__WINDOWS__)
-#include "wx/msw/mdi.h"
-#elif defined(__MOTIF__)
-#include "wx/xt/mdi.h"
-#elif defined(__GTK__)
-#include "wx/gtk/mdi.h"
+#ifndef _WX_MDI_H_BASE_
+#define _WX_MDI_H_BASE_
+
+#if wxUSE_MDI_ARCHITECTURE
+
+#if defined(__WXUNIVERSAL__)
+ #include "wx/generic/mdig.h"
+#elif defined(__WXMSW__)
+ #include "wx/msw/mdi.h"
+#elif defined(__WXMOTIF__)
+ #include "wx/motif/mdi.h"
+#elif defined(__WXGTK__)
+ #include "wx/gtk/mdi.h"
+#elif defined(__WXMAC__)
+ #include "wx/mac/mdi.h"
+#elif defined(__WXCOCOA__)
+ #include "wx/generic/mdig.h"
+#elif defined(__WXPM__)
+ #include "wx/generic/mdig.h"
#endif
+#endif // wxUSE_MDI_ARCHITECTURE
+
#endif
- // __MDIH_BASE__
+ // _WX_MDI_H_BASE_