From: Milan Čermák <mcer...@chello.cz> 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 <christophe.cu...@free.fr> --- wrlib/wraster.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wrlib/wraster.h b/wrlib/wraster.h index 12acdd0..479f975 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.1.1 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.