From 39725109fac627ba70300c858d3c6e13187824f6 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 11 Mar 2020 16:21:51 +0900 Subject: [PATCH] include/nuttx/compiler.h: Fix a C99 check The lack of __STDC_VERSION__ means we don't have C99. --- include/nuttx/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index bf9d222683..b027ae68fd 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -265,7 +265,7 @@ /* GCC supports inlined functions for C++ and for C version C99 and above */ -# if defined(__cplusplus) || !defined(__STDC_VERSION__) || __STDC_VERSION__ >= 199901L +# if defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) # define CONFIG_HAVE_INLINE 1 # else # undef CONFIG_HAVE_INLINE