From 2e58e489571e6dfa4ef022d17dff99c91b03b0fa Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 25 Dec 2010 23:41:47 +0100 Subject: [PATCH] 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. --- src/mmg/update_checker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmg/update_checker.h b/src/mmg/update_checker.h index e84c2bc70..58fe9ecdb 100644 --- a/src/mmg/update_checker.h +++ b/src/mmg/update_checker.h @@ -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