Fix compilation with mingw

If wxWidgets is built as a DLL then the DECLARE_EVENT_TYPE macro
assumes the event itself is defined in a DLL. If it isn't then the
linker will look for the wrong symbol.

Therefore don't use the macro as the event does indeed not live in a
DLL in this case.
This commit is contained in:
Moritz Bunkus 2010-12-25 23:41:47 +01:00
parent 48eb906077
commit 2e58e48957

View File

@ -55,7 +55,7 @@ private:
void close_dialog();
};
DECLARE_EVENT_TYPE(wxEVT_MTX_UPDATE_CHECK_STATE_CHANGED, -1);
extern const wxEventType wxEVT_MTX_UPDATE_CHECK_STATE_CHANGED;
# define UPDATE_CHECK_START 1
# define UPDATE_CHECK_DONE_NO_NEW_RELEASE 2