From 5879cf0c50cecded79224b5207be9a83c204ccad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Mar 2021 19:18:09 +0100 Subject: Fix support for fake methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- fake-quartz-cg.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'fake-quartz-cg.c') 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 -#include -#include - #ifndef HAVE_LIBGAMMA_METHOD_X_RANDR /* Use dummy translation */ @@ -150,7 +143,6 @@ close_fake_quartz(void) #include - /** * Connection to the X RandR display */ @@ -444,4 +436,5 @@ void close_fake_quartz_cg(void) original_ramps = NULL; } + #endif -- cgit v1.2.3-70-g09d2