diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index fa018859bf..f921c2df90 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -81,7 +81,7 @@ /* C++ support */ -#if __cplusplus >= 201402L +#if defined(__cplusplus) && __cplusplus >= 201402L # define CONFIG_HAVE_CXX14 1 #else # undef CONFIG_HAVE_CXX14