From 76f148583ab6eb709bd930aeec6855663619a68b Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkr?nzer Date: Wed, 25 Mar 2015 13:46:34 -0500 Subject: 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. --- kconfig/zconf.hash.c_shipped | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kconfig') diff --git a/kconfig/zconf.hash.c_shipped b/kconfig/zconf.hash.c_shipped index 47c8b5ba..0287aa3b 100644 --- a/kconfig/zconf.hash.c_shipped +++ b/kconfig/zconf.hash.c_shipped @@ -159,7 +159,7 @@ static struct kconf_id_strings_t kconf_id_strings_contents = "enable" }; #define kconf_id_strings ((const char *) &kconf_id_strings_contents) -#ifdef __GNUC__ +#if defined(__GNUC__) && __STDC_VERSION__ < 199901L __inline #endif struct kconf_id * -- cgit v1.2.3