diff options
author | avg <avg@FreeBSD.org> | 2017-03-01 13:47:28 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-03-01 13:47:28 +0000 |
commit | aebbeb8df32658dd39719bb222b180f2af1dcb1d (patch) | |
tree | a60e1703e1bcadd35dfbfba0c84d98a7451ad583 | |
parent | ccedff2f95c8384e8b80e311a2a5d4b1e9c4a4dc (diff) | |
download | FreeBSD-src-aebbeb8df32658dd39719bb222b180f2af1dcb1d.zip FreeBSD-src-aebbeb8df32658dd39719bb222b180f2af1dcb1d.tar.gz |
MFC r314101: don't use C99 static array indices with older GCC versions
Sponsored by: Panzura
-rw-r--r-- | sys/sys/cdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 61e2903..8027d33 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -349,6 +349,7 @@ * void bar(int myArray[__min_size(10)]); */ #if !defined(__cplusplus) && \ + (defined(__clang__) || __GNUC_PREREQ__(4, 6)) && \ (!defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901)) #define __min_size(x) static (x) #else |