소스 검색

include/starpu_sched_ctx.h: add C++ guard

Nathalie Furmento 12 년 전
부모
커밋
800fb1da65
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      include/starpu_sched_ctx.h

+ 9 - 0
include/starpu_sched_ctx.h

@@ -19,6 +19,11 @@
 
 #include <starpu.h>
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 /* generic structure used by the scheduling contexts to iterate the workers */
 struct starpu_sched_ctx_worker_collection
 {
@@ -127,4 +132,8 @@ void starpu_sched_ctx_set_inheritor(unsigned sched_ctx, unsigned inheritor);
 
 void starpu_sched_ctx_finished_submit(unsigned sched_ctx_id);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __STARPU_SCHED_CTX_H__ */