From 2530bf544d939103d076735553d87f4a50420b0b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Sep 2014 02:54:49 +0200 Subject: undef __attribute__ at end of files 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 | 5 +++++ src/lib/libgamma-error.h | 4 ++++ src/lib/libgamma-method.h | 4 ++++ 4 files changed, 18 insertions(+) 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 -- cgit v1.2.3-70-g09d2