From 325dc85891519757a046a82aca45703962343c4e Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 19 Jun 2015 21:56:47 +0200 Subject: [PATCH] wrlib: fixed gcc version needed for deprecated attribute support 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 Signed-off-by: Christophe CURIS --- wrlib/wraster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrlib/wraster.h b/wrlib/wraster.h index 479f9756..ab187bfe 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))