Fix Xcb autodetection during configure.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Tue, 13 Sep 2011 13:03:49 +0000 (15:03 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Sep 2011 18:39:28 +0000 (20:39 +0200)
Change-Id: I550e633d49cfcf4df393ae7d691e7f407276eb58
Reviewed-on: http://codereview.qt-project.org/4781
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
config.tests/qpa/xcb-poll-for-queued-event/xcb-poll-for-queued-event.cpp
config.tests/qpa/xcb/xcb.cpp

index d15e554..8f93d64 100644 (file)
 ****************************************************************************/
 
 #include <xcb/xcb.h>
+
+// FIXME This workaround can be removed for xcb-icccm > 3.8
+#define class class_name
 #include <xcb/xcb_icccm.h>
+#undef class
+
 #include <xcb/xfixes.h>
 #include <xcb/xcb_image.h>
 #include <xcb/xcb_keysyms.h>
index 71b30fe..50fb86f 100644 (file)
 ****************************************************************************/
 
 #include <xcb/xcb.h>
+
+// FIXME This workaround can be removed for xcb-icccm > 3.8
+#define class class_name
 #include <xcb/xcb_icccm.h>
+#undef class
+
 #include <xcb/xfixes.h>
 #include <xcb/xcb_image.h>
 #include <xcb/xcb_keysyms.h>