summarylogtreecommitdiffstats
path: root/fix-compatibility-with-boost-1.85.patch
blob: 2a873321b5231fe2da74095d535552d3c3b38364 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
 dom/include/dae.h                       | 2 +-
 dom/src/dae/daeUtils.cpp                | 2 +-
 dom/src/dae/daeZAEUncompressHandler.cpp | 2 +-
 dom/test/1.4/domTest.cpp                | 4 ++--
 dom/test/1.4/domTest.h                  | 2 +-
 dom/test/1.5/domTest.cpp                | 4 ++--
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dom/include/dae.h b/dom/include/dae.h
index e53388b..a14276a 100644
--- a/dom/include/dae.h
+++ b/dom/include/dae.h
@@ -25,7 +25,7 @@
 #pragma warning(disable: 4180 4245)
 #endif
 #ifndef NO_BOOST
-#include <boost/filesystem/convenience.hpp>
+#include <boost/filesystem/operations.hpp>
 #endif
 #ifdef _MSC_VER
 #pragma warning(pop)
diff --git a/dom/src/dae/daeUtils.cpp b/dom/src/dae/daeUtils.cpp
index dc94b5b..156d889 100644
--- a/dom/src/dae/daeUtils.cpp
+++ b/dom/src/dae/daeUtils.cpp
@@ -18,7 +18,7 @@
 #endif
 
 #ifndef NO_BOOST
-#include <boost/filesystem/convenience.hpp>       // THIS WAS NOT COMMENTED.
+#include <boost/filesystem/operations.hpp>       // THIS WAS NOT COMMENTED.
 #endif
 
 #include <cstdio> // for tmpnam
diff --git a/dom/src/dae/daeZAEUncompressHandler.cpp b/dom/src/dae/daeZAEUncompressHandler.cpp
index da2a344..2550000 100644
--- a/dom/src/dae/daeZAEUncompressHandler.cpp
+++ b/dom/src/dae/daeZAEUncompressHandler.cpp
@@ -271,7 +271,7 @@ bool daeZAEUncompressHandler::checkAndExtractInternalArchive( const std::string&
     bool error = false;
 
     boost::filesystem::path archivePath(filePath);
-    std::string dir = archivePath.branch_path().string();
+    std::string dir = archivePath.parent_path().string();
 
     const std::string& randomSegment = cdom::getRandomFileName();
     std::string tmpDir = dir + cdom::getFileSeparator() + randomSegment + cdom::getFileSeparator();
diff --git a/dom/test/1.4/domTest.cpp b/dom/test/1.4/domTest.cpp
index 28aefa5..ad76358 100644
--- a/dom/test/1.4/domTest.cpp
+++ b/dom/test/1.4/domTest.cpp
@@ -1543,9 +1543,9 @@ int main(int argc, char* argv[]) {
     // Shut the DOM up
     daeErrorHandler::setErrorHandler(&quietErrorHandler::getInstance());
 
-    dataPath() = (fs::path(argv[0]).branch_path()/"domTestData/").normalize();
+    dataPath() = (fs::path(argv[0]).parent_path()/"domTestData/").normalize();
     if (!fs::exists(dataPath()))
-        dataPath() = (fs::path(argv[0]).branch_path()/"../../test/1.4/data/").normalize();
+        dataPath() = (fs::path(argv[0]).parent_path()/"../../test/1.4/data/").normalize();
     tmpPath() = dataPath() / "tmp";
     tmpDir tmp(tmpPath(), !leaveTmpFiles);
 
diff --git a/dom/test/1.4/domTest.h b/dom/test/1.4/domTest.h
index a531e89..7dbf08c 100644
--- a/dom/test/1.4/domTest.h
+++ b/dom/test/1.4/domTest.h
@@ -26,7 +26,7 @@
 #pragma warning(push)
 #pragma warning(disable: 4180 4245)
 #endif
-#include <boost/filesystem/convenience.hpp>
+#include <boost/filesystem/operations.hpp>
 #ifdef _MSC_VER
 #pragma warning(pop)
 #endif
diff --git a/dom/test/1.5/domTest.cpp b/dom/test/1.5/domTest.cpp
index 0ba3449..457c863 100644
--- a/dom/test/1.5/domTest.cpp
+++ b/dom/test/1.5/domTest.cpp
@@ -1609,9 +1609,9 @@ int main(int argc, char* argv[]) {
     // Shut the DOM up
     daeErrorHandler::setErrorHandler(&quietErrorHandler::getInstance());
 
-    dataPath() = (fs::path(argv[0]).branch_path()/"domTestData/").normalize();
+    dataPath() = (fs::path(argv[0]).parent_path()/"domTestData/").normalize();
     if (!fs::exists(dataPath()))
-        dataPath() = (fs::path(argv[0]).branch_path()/"../../test/1.5/data/").normalize();
+        dataPath() = (fs::path(argv[0]).parent_path()/"../../test/1.5/data/").normalize();
     tmpPath() = dataPath() / "tmp";
     tmpDir tmp(tmpPath(), !leaveTmpFiles);