-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaegisub-boost-gil.patch
76 lines (64 loc) · 2 KB
/
aegisub-boost-gil.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
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
From 9c8c162eed098f657b5b63a021ca9076c3c5accc Mon Sep 17 00:00:00 2001
From: scx <[email protected]>
Date: Sat, 7 Sep 2019 20:55:07 +0200
Subject: [PATCH] Fixes for Boost 1.69.0
---
src/colour_button.cpp | 4 ++++
src/subtitles_provider_libass.cpp | 4 ++++
src/video_frame.cpp | 4 ++++
src/video_provider_dummy.cpp | 4 ++++
4 files changed, 16 insertions(+)
diff --git a/src/colour_button.cpp b/src/colour_button.cpp
index c0b1c5d58..83671ebf3 100644
--- a/src/colour_button.cpp
+++ b/src/colour_button.cpp
@@ -18,7 +18,11 @@
#include "dialogs.h"
+#if BOOST_VERSION >= 106900
+#include <boost/gil.hpp>
+#else
#include <boost/gil/gil_all.hpp>
+#endif
AGI_DEFINE_EVENT(EVT_COLOR, agi::Color);
diff --git a/src/subtitles_provider_libass.cpp b/src/subtitles_provider_libass.cpp
index efb5cb481..815c820da 100644
--- a/src/subtitles_provider_libass.cpp
+++ b/src/subtitles_provider_libass.cpp
@@ -46,7 +46,11 @@
#include <libaegisub/util.h>
#include <atomic>
+#if BOOST_VERSION >= 106900
+#include <boost/gil.hpp>
+#else
#include <boost/gil/gil_all.hpp>
+#endif
#include <memory>
#include <mutex>
diff --git a/src/video_frame.cpp b/src/video_frame.cpp
index 610005879..c7957d964 100644
--- a/src/video_frame.cpp
+++ b/src/video_frame.cpp
@@ -16,7 +16,11 @@
#include "video_frame.h"
+#if BOOST_VERSION >= 106900
+#include <boost/gil.hpp>
+#else
#include <boost/gil/gil_all.hpp>
+#endif
#include <wx/image.h>
namespace {
diff --git a/src/video_provider_dummy.cpp b/src/video_provider_dummy.cpp
index b68b206b7..17a1508b5 100644
--- a/src/video_provider_dummy.cpp
+++ b/src/video_provider_dummy.cpp
@@ -45,7 +45,11 @@
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem/path.hpp>
#include <libaegisub/format.h>
+#if BOOST_VERSION >= 106900
+#include <boost/gil.hpp>
+#else
#include <boost/gil/gil_all.hpp>
+#endif
DummyVideoProvider::DummyVideoProvider(double fps, int frames, int width, int height, agi::Color colour, bool pattern)
: framecount(frames)