From a8a58d1c98cfc5ca4918a577acc461bc0588c19b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Jun 2014 01:04:06 +0200 Subject: remove __attribute__ if not using gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/fake-quartz-cg.h | 5 +++++ src/lib/fake-w32-gdi.h | 4 ++++ src/lib/libgamma-error.h | 5 +++++ src/lib/libgamma-method.h | 4 ++++ src/test/methods.h | 4 ++++ 5 files changed, 22 insertions(+) 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 * and , * 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 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 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 #include diff --git a/src/test/methods.h b/src/test/methods.h index a80b02e..8e99921 100644 --- a/src/test/methods.h +++ b/src/test/methods.h @@ -19,6 +19,10 @@ #define LIBGAMMA_TEST_METHODS_H +#ifndef __GNUC__ +# define __attribute__() +#endif + /** * Get the name representation of an * adjustment method by its identifier. -- cgit v1.2.3-70-g09d2