include/nuttx/compiler.h: fix warning: __cplusplus is not defined. Some gcc derived compiler do not define __cplusplus

This commit is contained in:
Xiang Xiao
2018-08-27 05:53:16 -06:00
committed by Gregory Nutt
parent c139478f60
commit 439aac1449
+1 -1
View File
@@ -81,7 +81,7 @@
/* C++ support */
#if __cplusplus >= 201402L
#if defined(__cplusplus) && __cplusplus >= 201402L
# define CONFIG_HAVE_CXX14 1
#else
# undef CONFIG_HAVE_CXX14