[PATCH 1/2] wrlib: fixed gcc version needed for deprecated attribute support

Christophe CURIS <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
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 <[email protected]>
Signed-off-by: Christophe CURIS <[email protected]>
---
 wrlib/wraster.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wrlib/wraster.h b/wrlib/wraster.h
index 479f975..ab187bf 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))
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.