mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 21:47:28 +08:00
include/nuttx/compiler.h: fix warning: __cplusplus is not defined. Some gcc derived compiler do not define __cplusplus
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
|
||||
/* C++ support */
|
||||
|
||||
#if __cplusplus >= 201402L
|
||||
#if defined(__cplusplus) && __cplusplus >= 201402L
|
||||
# define CONFIG_HAVE_CXX14 1
|
||||
#else
|
||||
# undef CONFIG_HAVE_CXX14
|
||||
|
||||
Reference in New Issue
Block a user