From 132d5fad266b1af8ea0cc61c8d55192113f14e2b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Jun 2014 01:50:10 +0200 Subject: use, and define, __GCC__ rather than usign __GNUC__ 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.c | 4 ++-- src/lib/fake-quartz-cg.h | 2 +- src/lib/fake-w32-gdi.c | 4 ++-- src/lib/fake-w32-gdi.h | 2 +- src/lib/gamma-helper.c | 4 ++-- src/lib/gamma-x-randr.c | 4 ++-- src/lib/libgamma-error.h | 2 +- src/lib/libgamma-facade.c.gpp | 4 ++-- src/lib/libgamma-method.h | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/lib') diff --git a/src/lib/fake-quartz-cg.c b/src/lib/fake-quartz-cg.c index a3e405f..e52ef71 100644 --- a/src/lib/fake-quartz-cg.c +++ b/src/lib/fake-quartz-cg.c @@ -147,7 +147,7 @@ static uint16_t* restrict original_ramps = NULL; /* xcb violates the rule to never return struct:s. */ -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Waggregate-return" #endif @@ -364,7 +364,7 @@ uint32_t CGDisplayGammaTableCapacity(CGDirectDisplayID display) } -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic pop #endif diff --git a/src/lib/fake-quartz-cg.h b/src/lib/fake-quartz-cg.h index 2a4630c..a19b3e9 100644 --- a/src/lib/fake-quartz-cg.h +++ b/src/lib/fake-quartz-cg.h @@ -23,7 +23,7 @@ #endif -#ifndef __GNUC__ +#ifndef __GCC__ # define __attribute__ #endif diff --git a/src/lib/fake-w32-gdi.c b/src/lib/fake-w32-gdi.c index fe4732e..f151186 100644 --- a/src/lib/fake-w32-gdi.c +++ b/src/lib/fake-w32-gdi.c @@ -205,7 +205,7 @@ int GetDeviceCaps(HDC hDC, int nIndex) /* xcb violates the rule to never return struct:s. */ -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Waggregate-return" #endif @@ -320,7 +320,7 @@ HDC CreateDC(LPCTSTR restrict lpszDriver, LPCTSTR restrict lpszDevice, } -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic pop #endif diff --git a/src/lib/fake-w32-gdi.h b/src/lib/fake-w32-gdi.h index 8af440e..07f81a6 100644 --- a/src/lib/fake-w32-gdi.h +++ b/src/lib/fake-w32-gdi.h @@ -23,7 +23,7 @@ #endif -#ifndef __GNUC__ +#ifndef __GCC__ # define __attribute__ #endif diff --git a/src/lib/gamma-helper.c b/src/lib/gamma-helper.c index b674ac9..45a38b5 100644 --- a/src/lib/gamma-helper.c +++ b/src/lib/gamma-helper.c @@ -55,7 +55,7 @@ static inline uint64_t float_to_64(float value) { /* XXX Which is faster? */ -#ifdef __GNUC__ +#ifdef __GCC__ /* `__int128` is a GNU C extension, which (because it is not ISO C) emits a warning under -pedantic. */ @@ -121,7 +121,7 @@ static inline uint64_t double_to_64(double value) { /* XXX Which is faster? */ -#ifdef __GNUC__ +#ifdef __GCC__ /* `__int128` is a GNU C extension, which (because it is not ISO C) emits a warning under -pedantic. */ diff --git a/src/lib/gamma-x-randr.c b/src/lib/gamma-x-randr.c index efb3fb9..78695c5 100644 --- a/src/lib/gamma-x-randr.c +++ b/src/lib/gamma-x-randr.c @@ -162,7 +162,7 @@ void libgamma_x_randr_method_capabilities(libgamma_method_capabilities_t* restri /* xcb violates the rule to never return struct:s. */ -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Waggregate-return" #endif @@ -974,7 +974,7 @@ int libgamma_x_randr_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this, } -#ifdef __GNUC__ +#ifdef __GCC__ # pragma GCC diagnostic pop #endif diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h index 5d6e300..7b02e50 100644 --- a/src/lib/libgamma-error.h +++ b/src/lib/libgamma-error.h @@ -23,7 +23,7 @@ #endif -#ifndef __GNUC__ +#ifndef __GCC__ # define __attribute__ #endif diff --git a/src/lib/libgamma-facade.c.gpp b/src/lib/libgamma-facade.c.gpp index 07ee4b9..349a63e 100644 --- a/src/lib/libgamma-facade.c.gpp +++ b/src/lib/libgamma-facade.c.gpp @@ -60,7 +60,7 @@ $>done not have any adjustment methods enabled. */ #ifndef HAVE_LIBGAMMA_METHODS # define HAVE_NO_LIBGAMMA_METHODS -# ifdef __GNUC__ +# ifdef __GCC__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wsuggest-attribute=const" # endif @@ -1053,7 +1053,7 @@ $>crtc_set_gamma_ramps_f double rampsd #ifdef HAVE_NO_LIBGAMMA_METHODS -# ifdef __GNUC__ +# ifdef __GCC__ # pragma GCC diagnostic pop # endif #endif diff --git a/src/lib/libgamma-method.h b/src/lib/libgamma-method.h index 13eb9d9..303f912 100644 --- a/src/lib/libgamma-method.h +++ b/src/lib/libgamma-method.h @@ -23,7 +23,7 @@ #endif -#ifndef __GNUC__ +#ifndef __GCC__ # define __attribute__ #endif -- cgit v1.2.3-70-g09d2