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 Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
This commit is contained in:
parent
5b9702ebe2
commit
ce95db46b9
@ -63,6 +63,14 @@
|
|||||||
* Public Types
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define EXTERN extern "C"
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#else
|
||||||
|
#define EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
/* type tls_ndxset_t & tls_dtor_t *******************************************/
|
/* type tls_ndxset_t & tls_dtor_t *******************************************/
|
||||||
|
|
||||||
/* Smallest addressable type that can hold the entire configured number of
|
/* 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);
|
FAR struct task_info_s *task_get_info(void);
|
||||||
|
|
||||||
|
#undef EXTERN
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __INCLUDE_NUTTX_TLS_H */
|
#endif /* __INCLUDE_NUTTX_TLS_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user