Mercurial > hg > toybox
changeset 1755:ab3532a61d52 draft
Fix toybox build with C99 compilers
toybox "make menuconfig" currently fails to build if the compiler is in C99
mode (clang 3.6 and gcc 5.0 snapshots default to C99 mode, you can also
reproduce the failure with older gcc by using 'make menuconfig HOSTCC="gcc
-std=gnu99"').
The problem is that inline semantics changed in C99, and kconf_id_lookup's
inline-ness depends on C89 semantics there.
author | Bernhard Rosenkr?nzer <bernhard.rosenkranzer@linaro.org> |
---|---|
date | Wed, 25 Mar 2015 13:46:34 -0500 |
parents | 9596bf3ce7fa |
children | dbee4e656aa6 |
files | kconfig/zconf.hash.c_shipped |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kconfig/zconf.hash.c_shipped Tue Mar 24 14:17:03 2015 -0500 +++ b/kconfig/zconf.hash.c_shipped Wed Mar 25 13:46:34 2015 -0500 @@ -159,7 +159,7 @@ "enable" }; #define kconf_id_strings ((const char *) &kconf_id_strings_contents) -#ifdef __GNUC__ +#if defined(__GNUC__) && __STDC_VERSION__ < 199901L __inline #endif struct kconf_id *