소스 검색

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