summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorBradley Smith <bradley@baysmith.com>2012-03-18 18:44:31 -0700
committerQt by Nokia <qt-info@nokia.com>2012-03-19 20:16:04 +0100
commit336f24465a106553dae26ac84a3c43f9ad939a57 (patch)
tree36b6ae906d16ee06a7604c0829a25f21b3feb02d /config.tests
parent477c43260eea8461dff1e0e8acb4b61a1600518a (diff)
Improves configure checks for XCB.
The XCB plugin requries libxcb >= 1.5. Configure and config.tests/qpa/xcb now check for this. Change-Id: I96c688b79bf5b49fd3ecc4ddc12ebdc2d3788790 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/qpa/xcb/xcb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.tests/qpa/xcb/xcb.cpp b/config.tests/qpa/xcb/xcb.cpp
index c594d4f38b..6037f15e82 100644
--- a/config.tests/qpa/xcb/xcb.cpp
+++ b/config.tests/qpa/xcb/xcb.cpp
@@ -58,5 +58,8 @@ int main(int, char **)
xcb_connection_t *connection = xcb_connect("", &primaryScreen);
+ // This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY.
+ int xcbAtomPrimary = XCB_ATOM_PRIMARY;
+
return 0;
}