#if wxUSE_MSGDLG
-#if defined(__WXUNIVERSAL__)
+#if defined(__WXUNIVERSAL__) || defined(__WXGPE__)
#include "wx/generic/msgdlgg.h"
#elif defined(__WXMSW__)
#include "wx/msw/msgdlg.h"
#include "wx/generic/msgdlgg.h"
#elif defined(__WXMAC__)
#include "wx/mac/msgdlg.h"
+#elif defined(__WXCOCOA__)
+#include "wx/generic/msgdlgg.h"
#elif defined(__WXPM__)
#include "wx/os2/msgdlg.h"
#endif