svn commit: r367749 - head/x11-wm/libwraster/files
Adam Weinberger
adamw at FreeBSD.org
Tue Sep 9 16:54:14 UTC 2014
Author: adamw
Date: Tue Sep 9 16:54:13 2014
New Revision: 367749
URL: http://svnweb.freebsd.org/changeset/ports/367749
QAT: https://qat.redports.org/buildarchive/r367749/
Log:
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.
Added:
head/x11-wm/libwraster/files/
head/x11-wm/libwraster/files/patch-wrlib__wraster.h (contents, props changed)
Added: head/x11-wm/libwraster/files/patch-wrlib__wraster.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/libwraster/files/patch-wrlib__wraster.h Tue Sep 9 16:54:13 2014 (r367749)
@@ -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)
More information about the svn-ports-all
mailing list