mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-01 21:45:45 +01:00
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:
committed by
Carlos R. Mafra
parent
eb1c06d704
commit
325dc85891
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user