diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
commit | 5879cf0c50cecded79224b5207be9a83c204ccad (patch) | |
tree | 248c8b03d86b1679cfdb42b4f274839a8f981272 /fake-quartz-cg.c | |
parent | Update todo (diff) | |
download | libgamma-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 '')
-rw-r--r-- | fake-quartz-cg.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/fake-quartz-cg.c b/fake-quartz-cg.c index 75f1fb2..34d3995 100644 --- a/fake-quartz-cg.c +++ b/fake-quartz-cg.c @@ -1,7 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#ifndef FAKE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS -# error Compiling fake-quartz-cg.c without FAKE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS -#endif +#define IN_LIBGAMMA_QUARTZ_CG +#include "common.h" /* This file very sloppily translates Mac OS X Quartz calls to X RandR calls. * It should by no means be used, without additional modification, as a @@ -10,12 +9,6 @@ * a GNU/Linux system under X. */ -#include "fake-quartz-cg.h" - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - #ifndef HAVE_LIBGAMMA_METHOD_X_RANDR /* Use dummy translation */ @@ -150,7 +143,6 @@ close_fake_quartz(void) #include <xcb/randr.h> - /** * Connection to the X RandR display */ @@ -444,4 +436,5 @@ void close_fake_quartz_cg(void) original_ramps = NULL; } + #endif |