The support for a custom message in the attribute 'deprecated' have been added only from gcc 4.5.0 and not 4.0, so the check was updated accordingly to avoid compilation error with version 4.0 to 4.4.
Reported-by: Josip Deanovic <djosip+n...@linuxpages.net> Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- wrlib/wraster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrlib/wraster.h b/wrlib/wraster.h index 479f975..ab187bf 100644 --- a/wrlib/wraster.h +++ b/wrlib/wraster.h @@ -61,7 +61,7 @@ * mechanism and define an internal macro appropriately. Please note that the macro are not considered being * part of the public API. */ -#if __GNUC__ >= 4 +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) #define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg))) #elif __GNUC__ >= 3 #define __wrlib_deprecated(msg) __attribute__ ((deprecated)) -- 2.1.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.