Untested fix for win-mpi builds
authorNikhil Jain <nikhil@illinois.edu>
Fri, 10 Aug 2012 07:40:00 +0000 (02:40 -0500)
committerNikhil Jain <nikhil@illinois.edu>
Fri, 10 Aug 2012 07:40:00 +0000 (02:40 -0500)
src/ck-core/mpi-interoperate.h

index 25e468eeec2f43b20c23310699be376e1efb0da0..2fd87c89a4a6759795edaaae7dbc0c4911c9168e 100644 (file)
@@ -7,7 +7,12 @@
 
 #if CMK_CONVERSE_MPI
 #include <mpi.h>
+#ifdef __cplusplus
+extern "C" { MPI_Comm charmComm; }
+#else 
 extern MPI_Comm charmComm;
+#endif
+
 void CharmLibInit(MPI_Comm userComm, int argc, char **argv);
 #else
 void CharmLibInit(int userComm, int argc, char **argv);