ext: clang fix for flexible array members
Changes how flexible array members are defined so clang does not error out during compilation.
This commit is contained in:
parent
860f00228b
commit
0270cf13ac
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@
|
||||||
|
|
||||||
/* Support for flexible arrays. */
|
/* Support for flexible arrays. */
|
||||||
#undef __flexarr
|
#undef __flexarr
|
||||||
#if defined(__GNUC__) && ((__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97))
|
#if !defined(__clang__) && defined(__GNUC__) && \
|
||||||
|
((__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97))
|
||||||
/* GCC 2.97 supports C99 flexible array members. */
|
/* GCC 2.97 supports C99 flexible array members. */
|
||||||
# define __flexarr []
|
# define __flexarr []
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue