diff options
Diffstat (limited to 'endian.patch')
-rw-r--r-- | endian.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/endian.patch b/endian.patch new file mode 100644 index 000000000000..dcd280c0ed72 --- /dev/null +++ b/endian.patch @@ -0,0 +1,49 @@ +From 50d619e29f7664825a87fa526d3d933b521fabf0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> +Date: Thu, 15 Oct 2020 16:44:30 +0200 +Subject: [PATCH] Use __BYTE_ORDER__ instead of removed Boost endian.hpp + +endian.hpp has been removed with Boost 1.73. +--- + dolfin/io/VTKFile.cpp | 5 ++--- + dolfin/io/VTKWriter.cpp | 1 - + 2 files changed, 2 insertions(+), 4 deletions(-) + +diff --git a/dolfin/io/VTKFile.cpp b/dolfin/io/VTKFile.cpp +index 2fee53b..4dba84d 100644 +--- a/dolfin/io/VTKFile.cpp ++++ b/dolfin/io/VTKFile.cpp +@@ -20,7 +20,6 @@ + #include <vector> + #include <iomanip> + #include <boost/cstdint.hpp> +-#include <boost/detail/endian.hpp> + + #include "pugixml.hpp" + +@@ -614,9 +613,9 @@ void VTKFile::vtk_header_open(std::size_t num_vertices, std::size_t num_cells, + std::string endianness = ""; + if (encode_string == "binary") + { +- #if defined BOOST_LITTLE_ENDIAN ++ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + endianness = "byte_order=\"LittleEndian\""; +- #elif defined BOOST_BIG_ENDIAN ++ #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + endianness = "byte_order=\"BigEndian\"";; + #else + dolfin_error("VTKFile.cpp", +diff --git a/dolfin/io/VTKWriter.cpp b/dolfin/io/VTKWriter.cpp +index eff6934..b57a665 100644 +--- a/dolfin/io/VTKWriter.cpp ++++ b/dolfin/io/VTKWriter.cpp +@@ -24,7 +24,6 @@ + #include <sstream> + #include <vector> + #include <iomanip> +-#include <boost/detail/endian.hpp> + + #include <dolfin/fem/GenericDofMap.h> + #include <dolfin/fem/FiniteElement.h> +-- +2.28.0 |