From 527d21794cc4ccbe877127a29416cf3f2879f269 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:12:14 +0000 Subject: [PATCH] compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent, but this function doesn't exist in wx2.8. So, #define the former as the latter for backwards compatibility. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1537 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/prec.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/prec.hpp b/src/util/prec.hpp index 70ba93cb..dd99262e 100644 --- a/src/util/prec.hpp +++ b/src/util/prec.hpp @@ -60,6 +60,10 @@ typedef wxOutputStream OutputStream; #if wxVERSION_NUMBER < 2805 #define wxBORDER_THEME wxSUNKEN_BORDER #endif +#if wxVERSION_NUMBER < 2900 + // wx >= 2.9 requires the use of HandleWindowEvent on windows, instead of ProcessEvent + #define HandleWindowEvent ProcessEvent +#endif // ----------------------------------------------------------------------------- : Other aliasses