dialog creation function should be extern C

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-14 14:24:31 +00:00
parent a54930e05d
commit ed05b5c6e1

View 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