diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index 20d1312702..81c716bc07 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -78,7 +78,7 @@ /* C++ support */ -#if __cplusplus == 201402L +#if __cplusplus >= 201402L # define CONFIG_HAVE_CXX14 1 #else # undef CONFIG_HAVE_CXX14