From 439aac144969ba7ada8bf040b0fc830ac80b9684 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 27 Aug 2018 05:53:07 -0600 Subject: [PATCH] include/nuttx/compiler.h: fix warning: __cplusplus is not defined. Some gcc derived compiler do not define __cplusplus --- 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 fa018859bfa..f921c2df90b 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