Skip to content

Commit 9fb4fb9

Browse files
committed
Support C++ compilers
1 parent a931b2d commit 9fb4fb9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/mpi.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include <stdint.h>
55

6+
#if defined(__cplusplus)
7+
extern "C" {
8+
#endif
9+
610
#define MPI_VERSION 4
711
#define MPI_SUBVERSION 2
812

@@ -1872,4 +1876,8 @@ int PMPI_T_source_get_info(int source_index, char *name, int *name_len, char *de
18721876
int PMPI_T_source_get_num(int *num_sources);
18731877
int PMPI_T_source_get_timestamp(int source_index, MPI_Count *timestamp);
18741878

1879+
#if defined(__cplusplus)
1880+
}
1881+
#endif
1882+
18751883
#endif /* MPI_H_ABI */

0 commit comments

Comments
 (0)