]> git.saurik.com Git - wxWidgets.git/commitdiff
dialog creation function should be extern C
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Sep 2005 14:24:31 +0000 (14:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Sep 2005 14:24:31 +0000 (14:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/msgdlg.cpp

index 6611b48b272dee46bd25783e0cb0a5d3ecac2f49..7667a07b1cfc7607bf62c0cd0ff225c96248e0f1 100644 (file)
@@ -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