aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/fake-quartz-cg.h5
-rw-r--r--src/lib/fake-w32-gdi.h5
-rw-r--r--src/lib/libgamma-error.h4
-rw-r--r--src/lib/libgamma-method.h4
4 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/fake-quartz-cg.h b/src/lib/fake-quartz-cg.h
index d70a553..8a30ce5 100644
--- a/src/lib/fake-quartz-cg.h
+++ b/src/lib/fake-quartz-cg.h
@@ -73,5 +73,10 @@ uint32_t CGDisplayGammaTableCapacity(CGDirectDisplayID display) __attribute__((c
void close_fake_quartz_cg(void);
+
+#ifndef __GCC__
+# undefine __attribute__
+#endif
+
#endif
diff --git a/src/lib/fake-w32-gdi.h b/src/lib/fake-w32-gdi.h
index 8e7bb5e..b3b9271 100644
--- a/src/lib/fake-w32-gdi.h
+++ b/src/lib/fake-w32-gdi.h
@@ -82,5 +82,10 @@ BOOL EnumDisplayDevices(LPCTSTR restrict lpDevice, DWORD iDevNum,
PDISPLAY_DEVICE restrict lpDisplayDevice, DWORD dwFlags);
+
+#ifndef __GCC__
+# undefine __attribute__
+#endif
+
#endif
diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h
index 72c707d..7d38568 100644
--- a/src/lib/libgamma-error.h
+++ b/src/lib/libgamma-error.h
@@ -377,5 +377,9 @@ int libgamma_value_of_error(const char* name) __attribute__((const));
+#ifndef __GCC__
+# undefine __attribute__
+#endif
+
#endif
diff --git a/src/lib/libgamma-method.h b/src/lib/libgamma-method.h
index 777da29..d329be8 100644
--- a/src/lib/libgamma-method.h
+++ b/src/lib/libgamma-method.h
@@ -1283,5 +1283,9 @@ void libgamma_gamma_rampsd_free(libgamma_gamma_rampsd_t* restrict this);
+#ifndef __GCC__
+# undefine __attribute__
+#endif
+
#endif