From 7c70116c91ee9ba80812b6ccc04ac2446f43e69c Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Fri, 5 Dec 2014 14:55:36 +0300 Subject: [PATCH] put version(USE_XCB): to all xcb files --- 3rdparty/X11/X.d | 1 + 3rdparty/X11/Xlib.d | 1 + 3rdparty/X11/keysymdef.d | 1 + 3rdparty/X11/xcb/bigreq.d | 1 + 3rdparty/X11/xcb/composite.d | 1 + 3rdparty/X11/xcb/damage.d | 1 + 3rdparty/X11/xcb/dpms.d | 1 + 3rdparty/X11/xcb/example.d | 1 + 3rdparty/X11/xcb/glx.d | 1 + 3rdparty/X11/xcb/image.d | 1 + 3rdparty/X11/xcb/randr.d | 1 + 3rdparty/X11/xcb/record.d | 1 + 3rdparty/X11/xcb/render.d | 1 + 3rdparty/X11/xcb/res.d | 1 + 3rdparty/X11/xcb/screensaver.d | 1 + 3rdparty/X11/xcb/shape.d | 1 + 3rdparty/X11/xcb/shm.d | 1 + 3rdparty/X11/xcb/sync.d | 1 + 3rdparty/X11/xcb/xc_misc.d | 1 + 3rdparty/X11/xcb/xcb.d | 1 + 3rdparty/X11/xcb/xevie.d | 1 + 3rdparty/X11/xcb/xf86dri.d | 1 + 3rdparty/X11/xcb/xfixes.d | 1 + 3rdparty/X11/xcb/xinerama.d | 1 + 3rdparty/X11/xcb/xprint.d | 1 + 3rdparty/X11/xcb/xproto.d | 1 + 3rdparty/X11/xcb/xtest.d | 1 + 3rdparty/X11/xcb/xv.d | 1 + 3rdparty/X11/xcb/xvmc.d | 1 + 29 files changed, 29 insertions(+) diff --git a/3rdparty/X11/X.d b/3rdparty/X11/X.d index 4d552ed2..d325f215 100644 --- a/3rdparty/X11/X.d +++ b/3rdparty/X11/X.d @@ -7,6 +7,7 @@ */ module std.c.linux.X11.X; +version(USE_XCB): const uint X_PROTOCOL=11; /* current protocol version */ const uint X_PROTOCOL_REVISION=0; /* current minor version */ diff --git a/3rdparty/X11/Xlib.d b/3rdparty/X11/Xlib.d index 3f969caa..fa80d5c5 100644 --- a/3rdparty/X11/Xlib.d +++ b/3rdparty/X11/Xlib.d @@ -12,6 +12,7 @@ */ module std.c.linux.X11.Xlib; +version(USE_XCB): public import std.c.linux.X11.X; const int XlibSpecificationRelease=6; diff --git a/3rdparty/X11/keysymdef.d b/3rdparty/X11/keysymdef.d index 0baddcdf..680e4ed5 100644 --- a/3rdparty/X11/keysymdef.d +++ b/3rdparty/X11/keysymdef.d @@ -114,6 +114,7 @@ const XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\*\(U+([0-9A-F]{4,6}) = (.*)\)\*\/\ */ module std.c.linux.X11.keysymdef; +version(USE_XCB): const XK_VoidSymbol = 0xffffff; /* Void symbol */ diff --git a/3rdparty/X11/xcb/bigreq.d b/3rdparty/X11/xcb/bigreq.d index 6c7a1c68..01a0562f 100644 --- a/3rdparty/X11/xcb/bigreq.d +++ b/3rdparty/X11/xcb/bigreq.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.bigreq; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/composite.d b/3rdparty/X11/xcb/composite.d index b5235585..bc675ecc 100644 --- a/3rdparty/X11/xcb/composite.d +++ b/3rdparty/X11/xcb/composite.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.composite; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/damage.d b/3rdparty/X11/xcb/damage.d index 94a47d51..3f1d8810 100644 --- a/3rdparty/X11/xcb/damage.d +++ b/3rdparty/X11/xcb/damage.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.damage; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/dpms.d b/3rdparty/X11/xcb/dpms.d index 6578c69b..3f78f553 100644 --- a/3rdparty/X11/xcb/dpms.d +++ b/3rdparty/X11/xcb/dpms.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.dpms; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/example.d b/3rdparty/X11/xcb/example.d index e9332019..3828a7dc 100644 --- a/3rdparty/X11/xcb/example.d +++ b/3rdparty/X11/xcb/example.d @@ -1,4 +1,5 @@ module std.c.linux.X11.xcb.examle; +version(USE_XCB): /* build with: dmd xcb.d xproto.d example.d -L-lxcb */ diff --git a/3rdparty/X11/xcb/glx.d b/3rdparty/X11/xcb/glx.d index 34d38387..735cea6a 100644 --- a/3rdparty/X11/xcb/glx.d +++ b/3rdparty/X11/xcb/glx.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.glx; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/image.d b/3rdparty/X11/xcb/image.d index 85710ebb..e155fe9a 100644 --- a/3rdparty/X11/xcb/image.d +++ b/3rdparty/X11/xcb/image.d @@ -1,5 +1,6 @@ // Manually created module std.c.linux.X11.xcb.image; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.shm; diff --git a/3rdparty/X11/xcb/randr.d b/3rdparty/X11/xcb/randr.d index 1f43551a..e5e8a95d 100644 --- a/3rdparty/X11/xcb/randr.d +++ b/3rdparty/X11/xcb/randr.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.randr; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/record.d b/3rdparty/X11/xcb/record.d index 98eb13fc..617a5e94 100644 --- a/3rdparty/X11/xcb/record.d +++ b/3rdparty/X11/xcb/record.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.record; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/render.d b/3rdparty/X11/xcb/render.d index 26d4ecb9..67d3fb2c 100644 --- a/3rdparty/X11/xcb/render.d +++ b/3rdparty/X11/xcb/render.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.render; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/res.d b/3rdparty/X11/xcb/res.d index f600cce6..c8ba09ca 100644 --- a/3rdparty/X11/xcb/res.d +++ b/3rdparty/X11/xcb/res.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.res; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/screensaver.d b/3rdparty/X11/xcb/screensaver.d index aa11fad7..c912920a 100644 --- a/3rdparty/X11/xcb/screensaver.d +++ b/3rdparty/X11/xcb/screensaver.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.screensaver; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/shape.d b/3rdparty/X11/xcb/shape.d index cd56bc3b..aa3e5f61 100644 --- a/3rdparty/X11/xcb/shape.d +++ b/3rdparty/X11/xcb/shape.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.shape; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/shm.d b/3rdparty/X11/xcb/shm.d index 704142e2..238a85a3 100644 --- a/3rdparty/X11/xcb/shm.d +++ b/3rdparty/X11/xcb/shm.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.shm; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/sync.d b/3rdparty/X11/xcb/sync.d index fe24c3bd..9f28703b 100644 --- a/3rdparty/X11/xcb/sync.d +++ b/3rdparty/X11/xcb/sync.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.sync; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xc_misc.d b/3rdparty/X11/xcb/xc_misc.d index 490cd193..bc14ad53 100644 --- a/3rdparty/X11/xcb/xc_misc.d +++ b/3rdparty/X11/xcb/xc_misc.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xc_misc; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/xcb.d b/3rdparty/X11/xcb/xcb.d index ca63f989..e16fdcec 100644 --- a/3rdparty/X11/xcb/xcb.d +++ b/3rdparty/X11/xcb/xcb.d @@ -26,6 +26,7 @@ */ module std.c.linux.X11.xcb.xcb; +version(USE_XCB): /* Include the generated xproto module. */ import std.c.linux.X11.xcb.xproto; /*#include diff --git a/3rdparty/X11/xcb/xevie.d b/3rdparty/X11/xcb/xevie.d index dbc2ffb4..0aad71da 100644 --- a/3rdparty/X11/xcb/xevie.d +++ b/3rdparty/X11/xcb/xevie.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xevie; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/xf86dri.d b/3rdparty/X11/xcb/xf86dri.d index 85111890..5eef6251 100644 --- a/3rdparty/X11/xcb/xf86dri.d +++ b/3rdparty/X11/xcb/xf86dri.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xf86dri; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/xfixes.d b/3rdparty/X11/xcb/xfixes.d index 90f58b38..d2c26988 100644 --- a/3rdparty/X11/xcb/xfixes.d +++ b/3rdparty/X11/xcb/xfixes.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xfixes; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xinerama.d b/3rdparty/X11/xcb/xinerama.d index ef6ee57f..59a9a3e3 100644 --- a/3rdparty/X11/xcb/xinerama.d +++ b/3rdparty/X11/xcb/xinerama.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xinerama; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xprint.d b/3rdparty/X11/xcb/xprint.d index 0d7bed2a..22cad834 100644 --- a/3rdparty/X11/xcb/xprint.d +++ b/3rdparty/X11/xcb/xprint.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xprint; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xproto.d b/3rdparty/X11/xcb/xproto.d index 43607e6d..34fed208 100644 --- a/3rdparty/X11/xcb/xproto.d +++ b/3rdparty/X11/xcb/xproto.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xproto; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; diff --git a/3rdparty/X11/xcb/xtest.d b/3rdparty/X11/xcb/xtest.d index 461af66f..17d5c579 100644 --- a/3rdparty/X11/xcb/xtest.d +++ b/3rdparty/X11/xcb/xtest.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xtest; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xv.d b/3rdparty/X11/xcb/xv.d index 04507aa9..074643c6 100644 --- a/3rdparty/X11/xcb/xv.d +++ b/3rdparty/X11/xcb/xv.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xv; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xproto; diff --git a/3rdparty/X11/xcb/xvmc.d b/3rdparty/X11/xcb/xvmc.d index cec66db6..1f259df5 100644 --- a/3rdparty/X11/xcb/xvmc.d +++ b/3rdparty/X11/xcb/xvmc.d @@ -11,6 +11,7 @@ module std.c.linux.X11.xcb.xvmc; +version(USE_XCB): import std.c.linux.X11.xcb.xcb; import std.c.linux.X11.xcb.xv;