aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/fake-quartz-cg.h5
-rw-r--r--src/lib/fake-w32-gdi.h4
-rw-r--r--src/lib/libgamma-error.h5
-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 177bcd9..2a4630c 100644
--- a/src/lib/fake-quartz-cg.h
+++ b/src/lib/fake-quartz-cg.h
@@ -23,6 +23,11 @@
#endif
+#ifndef __GNUC__
+# define __attribute__
+#endif
+
+
/* This header file contains some capabilities of
* <CoreGraphics/CGDirectDisplay.h> and <CoreGraphics/CGError.h>,
* and can be used modify gamma ramps without Mac OS X and Quartz
diff --git a/src/lib/fake-w32-gdi.h b/src/lib/fake-w32-gdi.h
index a5ce365..8af440e 100644
--- a/src/lib/fake-w32-gdi.h
+++ b/src/lib/fake-w32-gdi.h
@@ -23,6 +23,10 @@
#endif
+#ifndef __GNUC__
+# define __attribute__
+#endif
+
#include <stdint.h>
diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h
index 3549a3d..5d6e300 100644
--- a/src/lib/libgamma-error.h
+++ b/src/lib/libgamma-error.h
@@ -22,6 +22,11 @@
# error libgamma-error.h should not be included directly, include libgamma.h instead
#endif
+
+#ifndef __GNUC__
+# define __attribute__
+#endif
+
#include <sys/types.h>
diff --git a/src/lib/libgamma-method.h b/src/lib/libgamma-method.h
index 43dee35..13eb9d9 100644
--- a/src/lib/libgamma-method.h
+++ b/src/lib/libgamma-method.h
@@ -23,6 +23,10 @@
#endif
+#ifndef __GNUC__
+# define __attribute__
+#endif
+
#include <stddef.h>
#include <stdint.h>