From 7ef791557a0604bf8e608ed131118867ae4f56c1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 8 Dec 2011 15:58:45 +0000 Subject: [PATCH] Allow using wxEvtHandler::Bind() with IBM xlC compiler v7+. xlC 7 seems to be able to deal with this code without problems under AIX 5.3 so white list it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/features.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/features.h b/include/wx/features.h index 9549e27cd2..d276ee8502 100644 --- a/include/wx/features.h +++ b/include/wx/features.h @@ -112,10 +112,12 @@ Recent Sun CC versions support this but perhaps older ones can compile this code too, adjust the version check if this is the case (unfortunately we can't easily test for the things used in wx/event.h in configure so we have - to maintain these checks manually). + to maintain these checks manually). The same applies to xlC 7: perhaps + earlier versions can compile this code too but they were not tested. */ #if wxCHECK_GCC_VERSION(3, 2) || wxCHECK_VISUALC_VERSION(7) \ - || (defined(__SUNCC__) && __SUNCC__ >= 0x5100) + || (defined(__SUNCC__) && __SUNCC__ >= 0x5100) \ + || (defined(__xlC__) && __xlC__ >= 0x700) #define wxHAS_EVENT_BIND #endif -- 2.45.2