mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +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:
committed by
Carlos R. Mafra
parent
461214d870
commit
1748a18380
@@ -61,8 +61,10 @@
|
|||||||
* mechanism and define an internal macro appropriately. Please note that the macro are not considered being
|
* mechanism and define an internal macro appropriately. Please note that the macro are not considered being
|
||||||
* part of the public API.
|
* part of the public API.
|
||||||
*/
|
*/
|
||||||
#if __GNUC__ >= 3
|
#if __GNUC__ >= 4
|
||||||
#define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg)))
|
#define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg)))
|
||||||
|
#elif __GNUC__ >= 3
|
||||||
|
#define __wrlib_deprecated(msg) __attribute__ ((deprecated))
|
||||||
#else
|
#else
|
||||||
#define __wrlib_deprecated(msg)
|
#define __wrlib_deprecated(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user