From 6841aca387385ea07aa0617f9d895e97d6d6a2f3 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 7 Feb 2010 17:01:16 +0000 Subject: [PATCH] Only define CACA_ALIAS with gcc > 3 (instead of >= 3). Patch courtesy of Carlo Bramini. Addresses #48. --- caca/caca.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/caca/caca.h b/caca/caca.h index 05ca598..5d91167 100644 --- a/caca/caca.h +++ b/caca/caca.h @@ -644,9 +644,13 @@ typedef struct cucul_buffer cucul_buffer_t; # if defined __GNUC__ && __GNUC__ >= 3 # define CACA_DEPRECATED __attribute__ ((__deprecated__)) -# define CACA_ALIAS(x) __attribute__ ((weak, alias(#x))) # else # define CACA_DEPRECATED +# endif + +# if defined __GNUC__ && __GNUC__ > 3 +# define CACA_ALIAS(x) __attribute__ ((weak, alias(#x))) +# else # define CACA_ALIAS(x) # endif