aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
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 '')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 179d44f..1dc49d3 100644
--- a/Makefile
+++ b/Makefile
@@ -116,6 +116,12 @@ endif
LIB_FLAGS = $(TEST_FLAGS) $(DEBUG_FLAGS) $(DEFINITIONS) -DLIBGAMMA_CONFIG_H
+ifeq ($(CC),gcc)
+TEST_FLAGS += -D__GCC__
+LIB_FLAGS += -D__GCC__
+endif
+
+
# Build rules.
.PHONY: default