Переглянути джерело

sched_ctx_hypervisor/include/sched_ctx_hypervisor.h: add C++ scope

Nathalie Furmento 12 роки тому
батько
коміт
228a657e8f
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

+ 9 - 0
sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

@@ -20,6 +20,11 @@
 #include <starpu.h>
 #include <pthread.h>
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 #ifdef STARPU_DEVEL
 #  warning rename all objects to start with sched_ctx_hypervisor
 #endif
@@ -170,4 +175,8 @@ void sched_ctx_hypervisor_free_size_req(void);
 
 unsigned sched_ctx_hypervisor_can_resize(unsigned sched_ctx);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif