2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-01-19 04:22:10 +00:00

Restore OMPI_SKIP_MPICXX and MPICH_SKIP_MPICXX in config.hpp to help

non cmake build.
Guard them form previous definition to avoir spurious warnings.
This commit is contained in:
Alain Miniussi
2024-10-29 17:16:16 +01:00
parent a12d6c8378
commit 819d0dd280

View File

@@ -13,6 +13,17 @@
#ifndef BOOST_MPI_CONFIG_HPP
#define BOOST_MPI_CONFIG_HPP
#if !defined(MPICH_IGNORE_CXX_SEEK)
/* Force MPICH not to define SEEK_SET, SEEK_CUR, and SEEK_END, which
conflict with the versions in <stdio.h> and <cstdio>. */
# define MPICH_IGNORE_CXX_SEEK 1
#endif
#if !defined(OMPI_SKIP_MPICXX)
/* We do not want to link in the OpenMPI CXX stuff */
# define OMPI_SKIP_MPICXX
#endif
#include <mpi.h>
#include <boost/config.hpp>