#elif defined(__WXQT__)
#include "wx/qt/filedlg.h"
#elif defined(__WXMAC__)
+#ifdef __WXMAC_X__
+#include "wx/generic/filedlgg.h"
+#else
#include "wx/mac/filedlg.h"
+#endif
#elif defined(__WXPM__)
#include "wx/os2/filedlg.h"
#elif defined(__WXSTUBS__)