|
Line
Link Here
|
|
The previous hack for making compile-time assertions no longer works |
|
The previous hack for making compile-time assertions no longer works |
| 1 |
with GCC 6. Use the built-in _Static_assert instead. |
1 |
with GCC 6. Use the built-in _Static_assert instead. |
| 2 |
-- lzop-1.03.orig/src/miniacc.h |
2 |
++ lzop-1.03/src/miniacc.h |
|
Lines 1699-1704
extern "C" {
Link Here
|
| 1699 |
# endif |
1699 |
# endif |
| 1700 |
#endif |
1700 |
#endif |
| 1701 |
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) |
1701 |
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) |
|
|
1702 |
# define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e); |
| 1703 |
#endif |
| 1704 |
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) |
| 1702 |
# if (ACC_CC_AZTECC || ACC_CC_ZORTECHC) |
1705 |
# if (ACC_CC_AZTECC || ACC_CC_ZORTECHC) |
| 1703 |
# define ACC_COMPILE_TIME_ASSERT_HEADER(e) extern int __acc_cta[1-!(e)]; |
1706 |
# define ACC_COMPILE_TIME_ASSERT_HEADER(e) extern int __acc_cta[1-!(e)]; |
| 1704 |
# elif (ACC_CC_DMC || ACC_CC_SYMANTECC) |
1707 |
# elif (ACC_CC_DMC || ACC_CC_SYMANTECC) |
|
Lines 1710-1715
extern "C" {
Link Here
|
| 1710 |
# endif |
1713 |
# endif |
| 1711 |
#endif |
1714 |
#endif |
| 1712 |
#if !defined(ACC_COMPILE_TIME_ASSERT) |
1715 |
#if !defined(ACC_COMPILE_TIME_ASSERT) |
|
|
1716 |
# define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e); |
| 1717 |
#endif |
| 1718 |
#if !defined(ACC_COMPILE_TIME_ASSERT) |
| 1713 |
# if (ACC_CC_AZTECC) |
1719 |
# if (ACC_CC_AZTECC) |
| 1714 |
# define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];} |
1720 |
# define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];} |
| 1715 |
# elif (ACC_CC_DMC || ACC_CC_PACIFICC || ACC_CC_SYMANTECC || ACC_CC_ZORTECHC) |
1721 |
# elif (ACC_CC_DMC || ACC_CC_PACIFICC || ACC_CC_SYMANTECC || ACC_CC_ZORTECHC) |