-
Notifications
You must be signed in to change notification settings - Fork 0
/
boost.patch
50 lines (44 loc) · 1.52 KB
/
boost.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From 50d619e29f7664825a87fa526d3d933b521fabf0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <[email protected]>
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