From 33fba8c749c6e0e064716dd98e53a4164fc9b249 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Jul 2016 19:24:46 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/libgamma-error.h | 4 ++-- src/lib/libgamma-facade.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h index 456560c..3a562ee 100644 --- a/src/lib/libgamma-error.h +++ b/src/lib/libgamma-error.h @@ -23,12 +23,12 @@ #endif +#include + #ifndef __GCC__ # define __attribute__(x) #endif -#include - /** * Group that the user needs to be a member of if diff --git a/src/lib/libgamma-facade.h b/src/lib/libgamma-facade.h index 343114c..a24c0e0 100644 --- a/src/lib/libgamma-facade.h +++ b/src/lib/libgamma-facade.h @@ -28,6 +28,10 @@ #include #include +#ifndef __GCC__ +# define __attribute__(x) +#endif + /** @@ -565,5 +569,9 @@ int libgamma_crtc_set_gamma_rampsd_f(libgamma_crtc_state_t* restrict this, libgamma_gamma_rampsd_fun* blue_function) __attribute__((cold)); +#ifndef __GCC__ +# undef __attribute__ +#endif + #endif -- cgit v1.2.3-70-g09d2