svn commit: r368207 - head/x11-wm/libwraster/files

Hiroki Sato hrs at FreeBSD.org
Sun Sep 14 17:35:35 UTC 2014


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)


More information about the svn-ports-head mailing list