Browse Source

Fix name mangling

Samuel Thibault 7 years ago
parent
commit
58d314a233
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/core/simgrid.h

+ 8 - 0
src/core/simgrid.h

@@ -18,6 +18,10 @@
 #ifndef __SIMGRID_H__
 #define __SIMGRID_H__
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 #ifdef STARPU_SIMGRID
 #ifdef STARPU_HAVE_SIMGRID_MSG_H
 #include <simgrid/msg.h>
@@ -116,4 +120,8 @@ void _starpu_simgrid_data_transfer(size_t size, unsigned src_node, unsigned dst_
 #define _starpu_simgrid_data_transfer(size, src_node, dst_node) (void)0
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // __SIMGRID_H__