aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libgamma-facade.h')
-rw-r--r--src/lib/libgamma-facade.h8
1 files changed, 8 insertions, 0 deletions
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