Explorar o código

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

Jason Schmidlapp %!s(int64=16) %!d(string=hai) anos
pai
achega
747ec72619
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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