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

This commit is contained in:
Hao Zhu 2019-01-09 11:28:02 +08:00 committed by Bernard Xiong
parent 064688992e
commit d3c2cb5845
1 changed files with 9 additions and 0 deletions

View File

@ -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