mirror of
https://github.com/boostorg/mpi.git
synced 2026-02-25 04:22:17 +00:00
Workaround for MPICH to properly deal with SEEK_* constants.
Fixes #1486 [SVN r41802]
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
#ifndef BOOST_MPI_CONFIG_HPP
|
||||
#define BOOST_MPI_CONFIG_HPP
|
||||
|
||||
/* 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
|
||||
|
||||
#include <mpi.h>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <boost/mpl/or.hpp>
|
||||
#include <boost/mpi/detail/mpi_datatype_cache.hpp>
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <utility> // for std::pair
|
||||
|
||||
namespace boost { namespace mpi {
|
||||
|
||||
@@ -289,6 +290,11 @@ struct is_mpi_datatype<bool>
|
||||
: boost::mpl::bool_<true>
|
||||
{};
|
||||
|
||||
/// INTERNAL ONLY
|
||||
template<typename T, typename U>
|
||||
struct is_mpi_datatype<std::pair<T, U> >
|
||||
: mpl::and_<is_mpi_datatype<T>, is_mpi_datatype<U> > { };
|
||||
|
||||
} } // end namespace boost::mpi
|
||||
|
||||
#endif // BOOST_MPI_MPI_DATATYPE_HPP
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef BOOST_MPI_DETAIL_MPI_DATATYPE_OPRIMITIVE_HPP
|
||||
#define BOOST_MPI_DETAIL_MPI_DATATYPE_OPRIMITIVE_HPP
|
||||
|
||||
#include <mpi.h>
|
||||
#include <boost/mpi/config.hpp>
|
||||
#include <cstddef> // size_t
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef BOOST_MPI_PACKED_IPRIMITIVE_HPP
|
||||
#define BOOST_MPI_PACKED_IPRIMITIVE_HPP
|
||||
|
||||
#include <mpi.h>
|
||||
#include <boost/mpi/config.hpp>
|
||||
#include <iostream>
|
||||
#include <cstddef> // size_t
|
||||
#include <boost/config.hpp>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef BOOST_MPI_PACKED_OPRIMITIVE_HPP
|
||||
#define BOOST_MPI_PACKED_OPRIMITIVE_HPP
|
||||
|
||||
#include <mpi.h>
|
||||
#include <boost/mpi/config.hpp>
|
||||
#include <iostream>
|
||||
#include <cstddef> // size_t
|
||||
#include <boost/config.hpp>
|
||||
|
||||
Reference in New Issue
Block a user