浏览代码

Add extern "C" around function declarations in pthread.h

Jason Schmidlapp 16 年之前
父节点
当前提交
747ec72619
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pthread.h

+ 8 - 0
pthread.h

@@ -654,6 +654,10 @@ enum
 
 #endif /* PTE_CLEANUP_C */
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
     /*
      * ===============
      * ===============
@@ -960,6 +964,10 @@ enum
 
 #endif /*PTE_LEVEL >= PTE_LEVEL_MAX - 1 */
 
+#ifdef __cplusplus
+}
+#endif /* cplusplus */
+
 #if PTE_LEVEL >= PTE_LEVEL_MAX