提交 d3c2cb58 编写于 作者: H Hao Zhu 提交者: Bernard Xiong

[components][libc] add extern "C" for header file

上级 06468899
......@@ -12,6 +12,11 @@
#define __PTHREAD_H__
#include <rtthread.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <posix_types.h>
#include <sched.h>
......@@ -262,4 +267,8 @@ int pthread_barrier_init(pthread_barrier_t *barrier,
int pthread_barrier_wait(pthread_barrier_t *barrier);
#ifdef __cplusplus
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册