| 1 | The `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
|
| 3 | removed in boost 1.73.0. They are superseded by the BOOST_ENDIAN_LITTLE_BYTE
|
| 4 | and BOOST_ENDIAN_BIG_BYTE macros and "boost/predef/other/endian.h" header.
|
| 5 |
|
| 6 | Deprecated: https://github.com/boostorg/predef/commit/32d4581c1689370444f2e565cfbb8421d5071807
|
| 7 | Removed: https://github.com/boostorg/predef/commit/aa6e232bf170ad8b856aff9e7c70334f77441c7f
|
| 8 |
|
| 9 | Adaptation of patch from https://bitbucket.org/fenics-project/dolfin/issues/1116
|
| 10 |
|
| 11 | |
| 12 | |
| 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 | |
| 36 | |
| 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 |
|