瀏覽代碼

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