]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow using wxEvtHandler::Bind() with IBM xlC compiler v7+.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Dec 2011 15:58:45 +0000 (15:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Dec 2011 15:58:45 +0000 (15:58 +0000)
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

index 9549e27cd2e114384050493cb2c99d71b94c9913..d276ee8502a449b7d888f7500c96cb33b5849fe9 100644 (file)
    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