Просмотр исходного кода

Fix headers so that they can be used from C++ again (patch from Corentin
Rossingnon).

Cédric Augonnet лет назад: 14
Родитель
Сommit
7e10b80fe2
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      include/starpu_util.h

+ 8 - 0
include/starpu_util.h

@@ -122,10 +122,18 @@ STARPU_ATOMIC_SOMETHING(or, old | value)
 #define STARPU_SYNCHRONIZE() __asm__ __volatile__("sync" ::: "memory")
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 /* Include this only here so that <starpu_data_interfaces.h> can use the
  * macros above.  */
 #include <starpu_task.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 static __inline int starpu_get_env_number(const char *str)
 {
 	char *strval;