ucl: Fix building with gcc >= 6.diff -r1.7 -r1.8 pkgsrc/devel/ucl/distinfo
(nia)
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.7 2015/11/04 17:41:18 agc Exp $ | 1 | $NetBSD: distinfo,v 1.8 2020/12/01 11:13:37 nia Exp $ | |
2 | 2 | |||
3 | SHA1 (ucl-1.03.tar.gz) = 5847003d136fbbca1334dd5de10554c76c755f7c | 3 | SHA1 (ucl-1.03.tar.gz) = 5847003d136fbbca1334dd5de10554c76c755f7c | |
4 | RMD160 (ucl-1.03.tar.gz) = d1b50127d482481c125eabff9a9c157d491c4a6a | 4 | RMD160 (ucl-1.03.tar.gz) = d1b50127d482481c125eabff9a9c157d491c4a6a | |
5 | SHA512 (ucl-1.03.tar.gz) = 7dd1824d01b4bb41ee03bbceddc634a9f7f910d235e5cca163d783680d6743f0f3cc309bbbcc1e094d897d549d3805a555f9093b4d77805443d896dd1862aa34 | 5 | SHA512 (ucl-1.03.tar.gz) = 7dd1824d01b4bb41ee03bbceddc634a9f7f910d235e5cca163d783680d6743f0f3cc309bbbcc1e094d897d549d3805a555f9093b4d77805443d896dd1862aa34 | |
6 | Size (ucl-1.03.tar.gz) = 534881 bytes | 6 | Size (ucl-1.03.tar.gz) = 534881 bytes | |
7 | SHA1 (patch-acc_acc__defs.h) = c2327d1346350e418856c5e162de2bf235f9dca7 |
$NetBSD: patch-acc_acc__defs.h,v 1.1 2020/12/01 11:13:38 nia Exp $
Fix build with gcc >= 6.
--- acc/acc_defs.h.orig 2004-07-19 23:01:47.000000000 +0000
+++ acc/acc_defs.h
@@ -86,6 +86,11 @@
************************************************************************/
/* This can be put into a header file but may get ignored by some compilers. */
+#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) && defined(__STDC_VERSION__)
+# if __STDC_VERSION__ >= 201112L
+# define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e);
+# endif
+#endif
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER)
# if (ACC_CC_AZTECC || ACC_CC_ZORTECHC)
# define ACC_COMPILE_TIME_ASSERT_HEADER(e) extern int __acc_cta[1-!(e)];
@@ -99,6 +104,11 @@
#endif
/* This must appear within a function body. */
+#if !defined(ACC_COMPILE_TIME_ASSERT) && defined(__STDC_VERSION__)
+# if __STDC_VERSION__ >= 201112L
+# define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e);
+# endif
+#endif
#if !defined(ACC_COMPILE_TIME_ASSERT)
# if (ACC_CC_AZTECC)
# define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];}