瀏覽代碼

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

Cédric Augonnet 14 年之前
父節點
當前提交
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;