Explorar o código

Fix name mangling

Samuel Thibault %!s(int64=7) %!d(string=hai) anos
pai
achega
58d314a233
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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__