Skip to content

Commit ac0a9f0

Browse files
committed
Remove double declaration of MPI_UB and MPI_LB
Remove a dupliate declaration of MPI_UB and MPI_LB in the case when mpi1-compat is specified. This change mirrors the behavior of the 4.1.x branch. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 119735d commit ac0a9f0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ompi/include/mpi.h.in

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Copyright (c) 2017-2019 IBM Corporation. All rights reserved.
2323
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
2424
* Copyright (c) 2021-2022 Google, LLC. All rights reserved.
25-
* Copyright (c) 2021 Amazon.com, Inc. or its affiliates. All Rights
25+
* Copyright (c) 2021-2022 Amazon.com, Inc. or its affiliates. All Rights
2626
* reserved.
2727
* Copyright (c) 2021 Bull S.A.S. All rights reserved.
2828
* Copyright (c) 2018 Triad National Security, LLC. All rights
@@ -1206,13 +1206,7 @@ OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub;
12061206
#define MPI_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_int)
12071207
#define MPI_SHORT_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_short_int)
12081208
#define MPI_2INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2int)
1209-
#if !OMPI_OMIT_MPI1_COMPAT_DECLS
1210-
/*
1211-
* Removed datatypes
1212-
*/
1213-
#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub)
1214-
#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb)
1215-
#endif
1209+
12161210
#define MPI_WCHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_wchar)
12171211
#if OPAL_HAVE_LONG_LONG
12181212
#define MPI_LONG_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_long_int)

0 commit comments

Comments
 (0)