1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 06:38:05 +01:00

wrlib: fix usage of deprecated attribute for gcc 3.x

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.curis@free.fr>
This commit is contained in:
Milan Čermák
2014-10-26 00:31:39 +02:00
committed by Carlos R. Mafra
parent 461214d870
commit 1748a18380

View File

@@ -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