projects/guix·blob python-team · refs

45 lines · 1.4 KiB

1The `BOOST_LITTLE_ENDIAN` and `BOOST_BIG_ENDIAN` macros, along with the
2"boost/detail/endian.hpp" header, were deprecated in boost 1.69.0 and finally
3removed in boost 1.73.0. They are superseded by the BOOST_ENDIAN_LITTLE_BYTE
4and BOOST_ENDIAN_BIG_BYTE macros and "boost/predef/other/endian.h" header.
5
6Deprecated: https://github.com/boostorg/predef/commit/32d4581c1689370444f2e565cfbb8421d5071807
7Removed: https://github.com/boostorg/predef/commit/aa6e232bf170ad8b856aff9e7c70334f77441c7f
8
9Adaptation of patch from https://bitbucket.org/fenics-project/dolfin/issues/1116
10
11--- a/dolfin/io/VTKFile.cpp
12+++ b/dolfin/io/VTKFile.cpp
13@@ -20,7 +20,7 @@
14 #include <vector>
15 #include <iomanip>
16 #include <boost/cstdint.hpp>
17-#include <boost/detail/endian.hpp>
18+#include <boost/predef/other/endian.h>
19
20 #include "pugixml.hpp"
21
22@@ -614,9 +614,9 @@
23 std::string endianness = "";
24 if (encode_string == "binary")
25 {
26- #if defined BOOST_LITTLE_ENDIAN
27+ #if defined BOOST_ENDIAN_LITTLE_BYTE
28 endianness = "byte_order=\"LittleEndian\"";
29- #elif defined BOOST_BIG_ENDIAN
30+ #elif defined BOOST_ENDIAN_BIG_BYTE
31 endianness = "byte_order=\"BigEndian\"";;
32 #else
33 dolfin_error("VTKFile.cpp",
34
35--- a/dolfin/io/VTKWriter.cpp
36+++ b/dolfin/io/VTKWriter.cpp
37@@ -24,7 +24,6 @@
38 #include <sstream>
39 #include <vector>
40 #include <iomanip>
41-#include <boost/detail/endian.hpp>
42
43 #include <dolfin/fem/GenericDofMap.h>
44 #include <dolfin/fem/FiniteElement.h>
45