summaryrefslogtreecommitdiff
path: root/x11-wm/libwraster/files/patch-wrlib_wraster.h.in
blob: 802c22548eeaa91576a501d1700b0ca59195193d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- wrlib/wraster.h.in.orig	2023-03-02 14:20:26 UTC
+++ wrlib/wraster.h.in
@@ -58,10 +58,14 @@
  * mechanism and define an internal macro appropriately. Please note that the macro are not considered being
  * part of the public API.
  */
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+#ifndef __has_feature
+#define	__has_feature(x)	0
+#endif
+#ifndef __has_extension
+#define	__has_extension	__has_feature
+#endif
+#if __has_extension(attribute_depreated_with_message)
 #define __wrlib_deprecated(msg)  __attribute__ ((deprecated(msg)))
-#elif __GNUC__ >= 3
-#define __wrlib_deprecated(msg)  __attribute__ ((deprecated))
 #else
 #define __wrlib_deprecated(msg)
 #endif