|
9 | 9 | * University of Stuttgart. All rights reserved.
|
10 | 10 | * Copyright (c) 2004-2005 The Regents of the University of California.
|
11 | 11 | * All rights reserved.
|
12 |
| - * Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved. |
| 12 | + * Copyright (c) 2007-2016 Cisco Systems, Inc. All rights reserved. |
13 | 13 | * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
|
14 | 14 | * Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
|
15 | 15 | * Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
|
@@ -941,13 +941,17 @@ OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_long_double;
|
941 | 941 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_wchar;
|
942 | 942 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_packed;
|
943 | 943 |
|
| 944 | +/* Per MPI-3.1 A.1.1 p674, only define the C++ datatypes if we're |
| 945 | + actually building C++ support */ |
| 946 | +#if defined(OMPI_BUILD_CXX_BINDINGS) && OMPI_BUILD_CXX_BINDINGS |
944 | 947 | /*
|
945 | 948 | * Following are the C++/C99 datatypes
|
946 | 949 | */
|
947 | 950 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_bool;
|
948 | 951 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_cplex;
|
949 | 952 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_dblcplex;
|
950 | 953 | OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_ldblcplex;
|
| 954 | +#endif |
951 | 955 |
|
952 | 956 | /*
|
953 | 957 | * Following are the Fortran datatypes
|
@@ -1162,10 +1166,15 @@ OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;
|
1162 | 1166 | #if HAVE_LONG_DOUBLE__COMPLEX
|
1163 | 1167 | #define MPI_C_LONG_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_long_double_complex)
|
1164 | 1168 | #endif
|
| 1169 | + |
| 1170 | +/* Per MPI-3.1 A.1.1 p674, only define the C++ datatypes if we're |
| 1171 | + actually building C++ support */ |
| 1172 | +#if defined(OMPI_BUILD_CXX_BINDINGS) && OMPI_BUILD_CXX_BINDINGS |
1165 | 1173 | #define MPI_CXX_BOOL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_bool)
|
1166 | 1174 | #define MPI_CXX_FLOAT_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_cplex)
|
1167 | 1175 | #define MPI_CXX_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_dblcplex)
|
1168 | 1176 | #define MPI_CXX_LONG_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_ldblcplex)
|
| 1177 | +#endif |
1169 | 1178 |
|
1170 | 1179 | /* New datatypes from the 3.0 standard */
|
1171 | 1180 | #define MPI_COUNT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_count)
|
|
0 commit comments