소스 검색

include/starpu_sched_component.h: add c++ needed code

Nathalie Furmento 11 년 전
부모
커밋
453043e11d
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      include/starpu_sched_component.h

+ 9 - 1
include/starpu_sched_component.h

@@ -19,6 +19,11 @@
 
 #include <starpu.h>
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 #ifdef STARPU_HAVE_HWLOC
 #include <hwloc.h>
 #endif
@@ -360,5 +365,8 @@ struct starpu_sched_specs
 struct starpu_sched_tree *starpu_sched_component_make_scheduler(unsigned sched_ctx_id, struct starpu_sched_specs);
 #endif /* STARPU_HAVE_HWLOC */
 
-
+#ifdef __cplusplus
+}
 #endif
+
+#endif /* __STARPU_SCHED_COMPONENT_H__ */