summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-09-09 16:54:13 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-09-09 16:54:13 +0000
commite1b66c5b75cb23c6f5b96e9dd78a7ab4cb9b8085 (patch)
tree93a35ef4db30adb31236647dd27dcccf5cc752b2 /x11-wm
parent- Update to 0.4.400.0 (diff)
It looks like __attribute__ deprecated(msg) wasn't supported until GCC 4.5.x, and
clang has the awesome __has_extension macros. Update the #if line to fix build against GCC 4.2.1 in base.
Notes
Notes: svn path=/head/; revision=367749
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/libwraster/files/patch-wrlib__wraster.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-wm/libwraster/files/patch-wrlib__wraster.h b/x11-wm/libwraster/files/patch-wrlib__wraster.h
new file mode 100644
index 000000000000..b87f186b58bd
--- /dev/null
+++ b/x11-wm/libwraster/files/patch-wrlib__wraster.h
@@ -0,0 +1,11 @@
+--- wrlib/wraster.h.orig 2014-09-09 16:49:44 UTC
++++ 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__ >= 3
++#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 5) || __has_extension(attribute_deprecated_with_message)
+ #define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg)))
+ #else
+ #define __wrlib_deprecated(msg)