Browse Source

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

Nathalie Furmento 12 years ago
parent
commit
228a657e8f
1 changed files with 9 additions and 0 deletions
  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