From ed05b5c6e1e04950f6cfaa1900567bffe64d9be3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 14 Sep 2005 14:24:31 +0000 Subject: [PATCH] dialog creation function should be extern C git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/msgdlg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.45.2