diff options
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/pthreads/pthread.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/libc/pthreads/pthread.h b/components/libc/pthreads/pthread.h index 6a82375de4..f9a0a92b68 100644 --- a/components/libc/pthreads/pthread.h +++ b/components/libc/pthreads/pthread.h @@ -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 |
