From c15d9c859c64f28c56d1e61b7d031a74e6018583 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 28 Jun 2003 12:33:09 +0000 Subject: [PATCH] fixed linker errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/event.h | 4 ++-- src/common/event.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/event.h b/include/wx/event.h index a954930650..ae1449d9c3 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -108,8 +108,8 @@ BEGIN_DECLARE_EVENT_TYPES() // it is important to still have these as constants to avoid // initialization order related problems DECLARE_EVENT_TYPE(wxEVT_NULL, 0) - const wxEventType wxEVT_FIRST = 10000; - const wxEventType wxEVT_USER_FIRST = wxEVT_FIRST + 2000; + DECLARE_EVENT_TYPE(wxEVT_FIRST, 10000) + DECLARE_EVENT_TYPE(wxEVT_USER_FIRST, wxEVT_FIRST + 2000) #endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES DECLARE_EVENT_TYPE(wxEVT_COMMAND_BUTTON_CLICKED, 1) diff --git a/src/common/event.cpp b/src/common/event.cpp index 3bde6aaa5d..74e70d9485 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -120,6 +120,9 @@ wxList *wxPendingEvents = (wxList *)NULL; // common event types are defined here, other event types are defined by the // components which use them + +const wxEventType wxEVT_FIRST = 10000; +const wxEventType wxEVT_USER_FIRST = wxEVT_FIRST + 2000; DEFINE_EVENT_TYPE(wxEVT_NULL) DEFINE_EVENT_TYPE(wxEVT_COMMAND_BUTTON_CLICKED) -- 2.50.0