ucl: fix build on gcc6.

This commit is contained in:
Christian Neukirchen 2016-12-13 17:18:27 +01:00
parent 9d0eba1c18
commit 9aae6d6d40
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
--- acc/acc_defs.h
+++ acc/acc_defs.h
@@ -87,6 +87,9 @@
/* This can be put into a header file but may get ignored by some compilers. */
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER)
+# define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e);
+#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)];
# elif (ACC_CC_DMC || ACC_CC_SYMANTECC)
@@ -100,6 +103,9 @@
/* This must appear within a function body. */
#if !defined(ACC_COMPILE_TIME_ASSERT)
+# define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e);
+#endif
+#if !defined(ACC_COMPILE_TIME_ASSERT)
# if (ACC_CC_AZTECC)
# define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];}
# elif (ACC_CC_DMC || ACC_CC_PACIFICC || ACC_CC_SYMANTECC || ACC_CC_ZORTECHC)

View file

@ -1,7 +1,7 @@
# Template file for 'ucl'
pkgname=ucl
version=1.03
revision=4
revision=5
conflicts="libucl-devel>=0"
build_style=gnu-configure
short_desc="Portable lossless data compression library written in ANSI C"