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 <djosip+news@linuxpages.net>
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2015-06-19 21:11:52 +01:00
1 parent eb1c06d704
commit 325dc85891
1 file changed
+1 -1
+1 -1
View File
@@ -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))