Skip to content

Commit 718b1d0

Browse files
Joe-DownsJoseph Downs
authored andcommitted
WIP: move Aint helper macros under ifndef OMPI_NO_MPI_PROTOTYPES
1 parent 3431c8d commit 718b1d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ompi/include/mpi.h.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,21 +1419,21 @@ OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub;
14191419
#define MPI_TYPECLASS_REAL 2
14201420
#define MPI_TYPECLASS_COMPLEX 3
14211421

1422+
/*
1423+
* Predefined info keys
1424+
*/
1425+
#define MPI_INFO_KEY_SESSION_PSET_SIZE "mpi_size"
1426+
1427+
#ifndef OMPI_NO_MPI_PROTOTYPES
14221428
/* Aint helper macros (MPI-3.1) */
14231429
#define MPI_Aint_add(base, disp) ((MPI_Aint) ((char *) (base) + (disp)))
14241430
#define MPI_Aint_diff(addr1, addr2) ((MPI_Aint) ((char *) (addr1) - (char *) (addr2)))
14251431
#define PMPI_Aint_add(base, disp) MPI_Aint_add(base, disp)
14261432
#define PMPI_Aint_diff(addr1, addr2) MPI_Aint_diff(addr1, addr2)
14271433

1428-
/*
1429-
* Predefined info keys
1430-
*/
1431-
#define MPI_INFO_KEY_SESSION_PSET_SIZE "mpi_size"
1432-
14331434
/*
14341435
* MPI API
14351436
*/
1436-
#ifndef OMPI_NO_MPI_PROTOTYPES
14371437
OMPI_DECLSPEC int MPI_Abi_supported(int *flag);
14381438
OMPI_DECLSPEC int MPI_Abi_version(int *abi_major, int *abi_minor);
14391439
OMPI_DECLSPEC int MPI_Abi_details(int *buflen, char *details, MPI_Info *info);

0 commit comments

Comments
 (0)