Selaa lähdekoodia

Fix name mangling

Samuel Thibault 7 vuotta sitten
vanhempi
commit
58d314a233
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  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__