Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 09:17:53 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457674 - head/lang/guile2/files
Message-ID:  <201712310917.vBV9Hrn0042206@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sun Dec 31 09:17:53 2017
New Revision: 457674
URL: https://svnweb.freebsd.org/changeset/ports/457674

Log:
  Improve GCC version check so it won't reject versions like 5.4, 6.4,
  7.2 and wrap `__clang__' with defined() to pacify -Wundef warning.

Modified:
  head/lang/guile2/files/patch-libguile_numbers.c

Modified: head/lang/guile2/files/patch-libguile_numbers.c
==============================================================================
--- head/lang/guile2/files/patch-libguile_numbers.c	Sun Dec 31 09:00:42 2017	(r457673)
+++ head/lang/guile2/files/patch-libguile_numbers.c	Sun Dec 31 09:17:53 2017	(r457674)
@@ -6,7 +6,7 @@
  
 +/* With old GCC, do not override _Static_assert: it conflicts with
 +   #include <complex.h> below. */
-+#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
++#if defined(__clang__) || (__GNUC__ * 10 + __GNUC_MINOR__ >= 46)
  #include <verify.h>
 +#endif
  #include <assert.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712310917.vBV9Hrn0042206>