diff --git a/include/wx/cocoa/msgdlg.h b/include/wx/cocoa/msgdlg.h index 7b69bf6e50..1a22cb9c23 100644 --- a/include/wx/cocoa/msgdlg.h +++ b/include/wx/cocoa/msgdlg.h @@ -25,10 +25,11 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSAlert); #endif #endif -#if defined(__WX_COMPILING_COCOA_MSGDLG_MM__) || wxUSE_COCOA_NATIVE_MSGDLG +#include "wx/generic/msgdlgg.h" + +#if wxUSE_COCOA_NATIVE_MSGDLG #define wxMessageDialog wxCocoaMessageDialog #else - #include "wx/generic/msgdlgg.h" #define wxMessageDialog wxGenericMessageDialog #endif