From f9c5adb86fdf70678167af0a493a7d2beee555f6 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 23 Jan 2009 14:15:51 +0000 Subject: [PATCH] Fix to enable the --disable-mpi-io configure option. This commit was SVN r20330. --- ompi/mpi/cxx/constants.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mpi/cxx/constants.h b/ompi/mpi/cxx/constants.h index 2885bddd0d..4e2dc93dec 100644 --- a/ompi/mpi/cxx/constants.h +++ b/ompi/mpi/cxx/constants.h @@ -237,6 +237,7 @@ OMPI_DECLSPEC extern const Group GROUP_EMPTY; static const int GRAPH = MPI_GRAPH; static const int CART = MPI_CART; +#if OMPI_PROVIDE_MPI_FILE_INTERFACE // MPI-2 IO static const int MODE_CREATE = MPI_MODE_CREATE; static const int MODE_RDONLY = MPI_MODE_RDONLY; @@ -250,13 +251,14 @@ static const int MODE_SEQUENTIAL = MPI_MODE_SEQUENTIAL; static const int DISPLACEMENT_CURRENT = MPI_DISPLACEMENT_CURRENT; -#if OMPI_PROVIDE_MPI_FILE_INTERFACE && !defined(OMPI_IGNORE_CXX_SEEK) && OMPI_WANT_MPI_CXX_SEEK +#if !defined(OMPI_IGNORE_CXX_SEEK) && OMPI_WANT_MPI_CXX_SEEK static const int SEEK_SET = ::SEEK_SET; static const int SEEK_CUR = ::SEEK_CUR; static const int SEEK_END = ::SEEK_END; #endif static const int MAX_DATAREP_STRING = MPI_MAX_DATAREP_STRING; +#endif // one-sided constants static const int MODE_NOCHECK = MPI_MODE_NOCHECK;