diff options
author | adamw <adamw@FreeBSD.org> | 2014-09-10 00:54:13 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-09-10 00:54:13 +0800 |
commit | 791241e82fd3aac3f1722b7911a2107a5a68ea4c (patch) | |
tree | 93a35ef4db30adb31236647dd27dcccf5cc752b2 /x11-wm | |
parent | c21be3b51e120a018487251dfb680e80587066ed (diff) | |
download | freebsd-ports-gnome-791241e82fd3aac3f1722b7911a2107a5a68ea4c.tar.gz freebsd-ports-gnome-791241e82fd3aac3f1722b7911a2107a5a68ea4c.tar.zst freebsd-ports-gnome-791241e82fd3aac3f1722b7911a2107a5a68ea4c.zip |
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.
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/libwraster/files/patch-wrlib__wraster.h | 11 |
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) |