Date: Tue, 9 Sep 2014 16:54:14 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r367749 - head/x11-wm/libwraster/files Message-ID: <201409091654.s89GsEd9068618@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409091654.s89GsEd9068618>