include/nuttx/compiler.h: fix warning: __cplusplus is not defined. Some gcc derived compiler do not define __cplusplus
This commit is contained in:
parent
c139478f60
commit
439aac1449
@ -81,7 +81,7 @@
|
||||
|
||||
/* C++ support */
|
||||
|
||||
#if __cplusplus >= 201402L
|
||||
#if defined(__cplusplus) && __cplusplus >= 201402L
|
||||
# define CONFIG_HAVE_CXX14 1
|
||||
#else
|
||||
# undef CONFIG_HAVE_CXX14
|
||||
|
Loading…
Reference in New Issue
Block a user