Browse Source

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

Cédric Augonnet 15 years ago
parent
commit
c21d15d87b
1 changed files with 8 additions and 0 deletions
  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__