aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 19:24:46 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 19:24:46 +0200
commit33fba8c749c6e0e064716dd98e53a4164fc9b249 (patch)
treecca6523fd192aecdd7ca0b892e166fa3cf668fff
parenttypo (diff)
downloadlibgamma-33fba8c749c6e0e064716dd98e53a4164fc9b249.tar.gz
libgamma-33fba8c749c6e0e064716dd98e53a4164fc9b249.tar.bz2
libgamma-33fba8c749c6e0e064716dd98e53a4164fc9b249.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/lib/libgamma-error.h4
-rw-r--r--src/lib/libgamma-facade.h8
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 <sys/types.h>
+
#ifndef __GCC__
# define __attribute__(x)
#endif
-#include <sys/types.h>
-
/**
* 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 <stddef.h>
#include <stdint.h>
+#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