summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-01-21 18:17:51 +0800
committerGitHub <[email protected]>2019-01-21 18:17:51 +0800
commitdfebb30c91875c52f16fd4e7bb9e5981fd0512b4 (patch)
treea5963a4d33a40b9286a6cfc0fc948751e66bb5b1 /components/libc
parent3dd0ebe6e7d8d0ad7605269ef8fffd66a8029931 (diff)
parentb7996af1862800b80c756329dcbf1a8496651a81 (diff)
Merge pull request #2238 from armink/lts-v3.1.x
Sync from master latest version.
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/pthreads/pthread.h9
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