aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-18 01:50:10 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-18 01:50:10 +0200
commit132d5fad266b1af8ea0cc61c8d55192113f14e2b (patch)
tree094f320da925c488bf452cece7518e49985adafb /src/test
parentadd missing _error suffix (diff)
downloadlibgamma-132d5fad266b1af8ea0cc61c8d55192113f14e2b.tar.gz
libgamma-132d5fad266b1af8ea0cc61c8d55192113f14e2b.tar.bz2
libgamma-132d5fad266b1af8ea0cc61c8d55192113f14e2b.tar.xz
use, and define, __GCC__ rather than usign __GNUC__
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/methods.h2
-rw-r--r--src/test/test.c4
-rw-r--r--src/test/update-warnings.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/test/methods.h b/src/test/methods.h
index 8e99921..46b7319 100644
--- a/src/test/methods.h
+++ b/src/test/methods.h
@@ -19,7 +19,7 @@
#define LIBGAMMA_TEST_METHODS_H
-#ifndef __GNUC__
+#ifndef __GCC__
# define __attribute__()
#endif
diff --git a/src/test/test.c b/src/test/test.c
index 53b0515..eafe90f 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -126,12 +126,12 @@ typedef const char* str;
print_crtc_information_(size_t, "lu")
print_crtc_information_(signed, "i")
print_crtc_information_(int, "i")
-#ifdef __GNUC__
+#ifdef __GCC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdouble-promotion"
#endif
print_crtc_information_(float, "f")
-#ifdef __GNUC__
+#ifdef __GCC__
# pragma GCC diagnostic pop
#endif
print_crtc_information_(str, "s")
diff --git a/src/test/update-warnings.h b/src/test/update-warnings.h
index f361b8e..b400fe3 100644
--- a/src/test/update-warnings.h
+++ b/src/test/update-warnings.h
@@ -43,7 +43,7 @@
* accomplish this.
*/
-#ifdef __GNUC__
+#ifdef __GCC__
# if LIBGAMMA_ERROR_MIN < -46
# warning New error codes have been added to libgamma.
# endif