aboutsummaryrefslogtreecommitdiffstats
path: root/method-x-randr.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-05 19:18:09 +0100
committerMattias Andrée <maandree@kth.se>2021-03-05 19:18:09 +0100
commit5879cf0c50cecded79224b5207be9a83c204ccad (patch)
tree248c8b03d86b1679cfdb42b4f274839a8f981272 /method-x-randr.h
parentUpdate todo (diff)
downloadlibgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.gz
libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.bz2
libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.xz
Fix support for fake methods
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'method-x-randr.h')
-rw-r--r--method-x-randr.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/method-x-randr.h b/method-x-randr.h
index 81c5275..51dc0bf 100644
--- a/method-x-randr.h
+++ b/method-x-randr.h
@@ -1,18 +1,20 @@
/* See LICENSE file for copyright and license details. */
-#include <xcb/xcb.h>
-#include <xcb/randr.h>
+
+#ifdef IN_LIBGAMMA_X_RANDR
+# include <xcb/xcb.h>
+# include <xcb/randr.h>
/**
* The major version of RandR the library expects
*/
-#define RANDR_VERSION_MAJOR 1
+# define RANDR_VERSION_MAJOR 1
/**
* The minor version of RandR the library expects
*/
-#define RANDR_VERSION_MINOR 3
+# define RANDR_VERSION_MINOR 3
/**
@@ -48,6 +50,7 @@ typedef struct libgamma_x_randr_partition_data {
xcb_timestamp_t config_timestamp;
} libgamma_x_randr_partition_data_t;
+#endif
@@ -191,6 +194,7 @@ int libgamma_x_randr_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, con
+#ifdef IN_LIBGAMMA_X_RANDR
/**
* Translate an xcb error into a libgamma error
*
@@ -205,7 +209,6 @@ int libgamma_x_randr_internal_translate_error(int, int, int);
/* xcb violates the rule to never return struct:s */
-#ifdef IN_LIBGAMMA_X_RANDR
# ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Waggregate-return"