Explorar o código

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

Cédric Augonnet %!s(int64=15) %!d(string=hai) anos
pai
achega
c21d15d87b
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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__