Author: avg
Date: Wed Mar 1 13:47:36 2017
New Revision: 314494
URL: https://svnweb.freebsd.org/changeset/base/314494
Log:
MFC r314101: don't use C99 static array indices with older GCC versions
Sponsored by: Panzura
Modified:
stable/10/sys/sys/cdefs.h
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/sys/cdefs.h
==============================================================================
--- stable/10/sys/sys/cdefs.h Wed Mar 1 13:47:28 2017 (r314493)
+++ stable/10/sys/sys/cdefs.h Wed Mar 1 13:47:36 2017 (r314494)
@@ -340,6 +340,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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"