diff options
Diffstat (limited to 'nuttx/libc/lib_internal.h')
-rw-r--r-- | nuttx/libc/lib_internal.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nuttx/libc/lib_internal.h b/nuttx/libc/lib_internal.h index 17adff417..76a37de0d 100644 --- a/nuttx/libc/lib_internal.h +++ b/nuttx/libc/lib_internal.h @@ -104,10 +104,19 @@ * Public Variables ****************************************************************************/ +#undef EXTERN +#if defined(__cplusplus) +#define EXTERN extern "C" +extern "C" +{ +#else +#define EXTERN extern +#endif + /* Debug output is initially disabled */ #ifdef CONFIG_SYSLOG_ENABLE -extern bool g_syslogenable; +EXTERN bool g_syslogenable; #endif /**************************************************************************** @@ -200,4 +209,9 @@ double lib_expi(size_t n); float lib_sqrtapprox(float x); #endif +#undef EXTERN +#if defined(__cplusplus) +} +#endif + #endif /* __LIB_LIB_INTERNAL_H */ |