include/nuttx/tls.h: add CXX extern define for tls
Summary:
In order to use C functions in C++ code, "extern C"
needs to be defined in the C header file.
Add "extern C" define for tls.h
* Public Types
****************************************************************************/
+#ifdef __cplusplus
+#define EXTERN extern "C"
+extern "C"
+{
+#else
+#define EXTERN extern
+#endif
+
/* type tls_ndxset_t & tls_dtor_t *******************************************/
/* Smallest addressable type that can hold the entire configured number of
@@ -345,4 +353,9 @@ void tls_destruct(void);
FAR struct task_info_s *task_get_info(void);
+#undef EXTERN
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __INCLUDE_NUTTX_TLS_H */
