瀏覽代碼

Public header files could be included from a C++ application

Cédric Augonnet 15 年之前
父節點
當前提交
c21d15d87b
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      include/starpu_profiling.h

+ 8 - 0
include/starpu_profiling.h

@@ -21,6 +21,10 @@
 #include <sys/time.h>
 #include <starpu.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define STARPU_PROFILING_DISABLE	0
 #define STARPU_PROFILING_ENABLE		1
 
@@ -131,4 +135,8 @@ double starpu_timing_timespec_to_us(struct timespec *ts);
 
 void starpu_bus_profiling_helper_display_summary(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // __STARPU_PROFILING_H__