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 + +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -262,4 +267,8 @@ int pthread_barrier_init(pthread_barrier_t *barrier, int pthread_barrier_wait(pthread_barrier_t *barrier); +#ifdef __cplusplus +} +#endif + #endif