From 1748a183802a02029dba9159096e837fb694bbbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milan=20=C4=8Cerm=C3=A1k?= Date: Sun, 26 Oct 2014 00:31:39 +0200 Subject: [PATCH] wrlib: fix usage of deprecated attribute for gcc 3.x It seems that the argument to the attribute 'deprecated' is a novelty of gcc 4.x, the attribute introduced in gcc 3.x did not take any parameter. As Solaris 10 is providing gcc 3.4.3, this patch updates the detection in the public API header to make it compile properly. Signed-off-by: Christophe CURIS --- wrlib/wraster.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wrlib/wraster.h b/wrlib/wraster.h index 12acdd00..479f9756 100644 --- a/wrlib/wraster.h +++ b/wrlib/wraster.h @@ -61,8 +61,10 @@ * mechanism and define an internal macro appropriately. Please note that the macro are not considered being * part of the public API. */ -#if __GNUC__ >= 3 +#if __GNUC__ >= 4 #define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg))) +#elif __GNUC__ >= 3 +#define __wrlib_deprecated(msg) __attribute__ ((deprecated)) #else #define __wrlib_deprecated(msg) #endif -- 2.11.4.GIT