aboutsummaryrefslogtreecommitdiffstats
path: root/fake-quartz-cg.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fake-quartz-cg.c13
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