X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da8cf7236e48410e095c2ff50efe0c013ed89078..9bb50fd0b04c824fc7ba14c0dc4ba4a2a9a1e6ad:/src/motif/msgdlg.cpp diff --git a/src/motif/msgdlg.cpp b/src/motif/msgdlg.cpp index 6611b48b27..7667a07b1c 100644 --- a/src/motif/msgdlg.cpp +++ b/src/motif/msgdlg.cpp @@ -113,11 +113,16 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent, SetMessageDialogStyle(style); } +extern "C" +{ + typedef Widget (*DialogCreateFunction)(Widget, String, ArgList, Cardinal); +} + int wxMessageDialog::ShowModal() { - Widget (*dialogCreateFunction)(Widget, String, ArgList, Cardinal) = NULL; const long style = GetMessageDialogStyle(); + DialogCreateFunction dialogCreateFunction; if ( style & wxYES_NO ) { // if we have [Yes], it must be a question