From: Vadim Zeitlin Date: Wed, 14 Sep 2005 14:24:31 +0000 (+0000) Subject: dialog creation function should be extern C X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed05b5c6e1e04950f6cfaa1900567bffe64d9be3?ds=inline dialog creation function should be extern C git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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