Sfoglia il codice sorgente

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

Jason Schmidlapp 16 anni fa
parent
commit
747ec72619
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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