include/nuttx/compiler.h: Fix a C99 check

The lack of __STDC_VERSION__ means we don't have C99.
This commit is contained in:
YAMAMOTO Takashi 2020-03-11 16:21:51 +09:00 committed by Xiang Xiao
parent fc2d2e2a5e
commit 39725109fa

View File

@ -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