Date: Sun, 14 Sep 2014 17:35:34 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368207 - head/x11-wm/libwraster/files Message-ID: <201409141735.s8EHZYdD028568@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Sun Sep 14 17:35:34 2014 New Revision: 368207 URL: http://svnweb.freebsd.org/changeset/ports/368207 QAT: https://qat.redports.org/buildarchive/r368207/ Log: Fix build on branches with GCC 4.2.1. Modified: head/x11-wm/libwraster/files/patch-wrlib__wraster.h Modified: head/x11-wm/libwraster/files/patch-wrlib__wraster.h ============================================================================== --- head/x11-wm/libwraster/files/patch-wrlib__wraster.h Sun Sep 14 17:28:53 2014 (r368206) +++ head/x11-wm/libwraster/files/patch-wrlib__wraster.h Sun Sep 14 17:35:34 2014 (r368207) @@ -1,11 +1,17 @@ ---- wrlib/wraster.h.orig 2014-09-09 16:49:44 UTC -+++ wrlib/wraster.h -@@ -61,7 +61,7 @@ +--- wrlib/wraster.h.orig 2014-08-30 21:29:09.000000000 +0900 ++++ wrlib/wraster.h 2014-09-15 02:31:40.000000000 +0900 +@@ -61,7 +61,13 @@ * 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) ++#ifndef __has_feature ++#define __has_feature(x) 0 ++#endif ++#ifndef __has_extension ++#define __has_extension __has_feature ++#endif ++#if __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?201409141735.s8EHZYdD028568>