summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-10-10 11:23:35 +0100
committerCarl Hetherington <cth@carlh.net>2018-10-10 11:23:35 +0100
commitc4ac1ba47652884a647103ec49b2de4c0b6e60a9 (patch)
treeb4737409619cbf0724d3d6869fb877ad8b1c708c /src/lib
parent06b02d71f02d29494dfb312c5006dc163aa7f4c9 (diff)
Fix non-variant build.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.h6
-rw-r--r--src/lib/monitor_checker.cc4
-rw-r--r--src/lib/spl.h2
-rw-r--r--src/lib/spl_entry.h5
4 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index a313e4342..011906a41 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -519,11 +519,11 @@ public:
std::vector<Monitor> required_monitors () const {
return _required_monitors;
}
+#endif
bool allow_spl_editing () const {
return _allow_spl_editing;
}
-#endif
/* SET (mostly) */
@@ -1003,11 +1003,11 @@ public:
void set_required_monitors (std::vector<Monitor> monitors) {
maybe_set (_required_monitors, monitors);
}
+#endif
void set_allow_spl_editing (bool s) {
maybe_set (_allow_spl_editing, s);
}
-#endif
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
@@ -1211,8 +1211,8 @@ private:
/** watermark duration in milliseconds */
int _player_watermark_duration;
std::vector<Monitor> _required_monitors;
- bool _allow_spl_editing;
#endif
+ bool _allow_spl_editing;
static int const _current_version;
diff --git a/src/lib/monitor_checker.cc b/src/lib/monitor_checker.cc
index c506cd09e..19d8d8181 100644
--- a/src/lib/monitor_checker.cc
+++ b/src/lib/monitor_checker.cc
@@ -18,6 +18,8 @@
*/
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+
#include "monitor_checker.h"
#include "config.h"
#include "cross.h"
@@ -100,3 +102,5 @@ MonitorChecker::instance ()
return _instance;
}
+
+#endif
diff --git a/src/lib/spl.h b/src/lib/spl.h
index 5e1bd47b2..25e8ac4c5 100644
--- a/src/lib/spl.h
+++ b/src/lib/spl.h
@@ -21,9 +21,9 @@
#ifndef DCPOMATIC_SPL_H
#define DCPOMATIC_SPL_H
+#include "spl_entry.h"
#include <boost/filesystem.hpp>
-class SPLEntry;
class SPL
{
diff --git a/src/lib/spl_entry.h b/src/lib/spl_entry.h
index cc28d92bd..e79d89afc 100644
--- a/src/lib/spl_entry.h
+++ b/src/lib/spl_entry.h
@@ -18,6 +18,9 @@
*/
+#ifndef DCPOMATIC_SPL_ENTRY_H
+#define DCPOMATIC_SPL_ENTRY_H
+
#include "dcpomatic_time.h"
namespace dcp {
@@ -37,3 +40,5 @@ public:
boost::shared_ptr<dcp::CPL> cpl;
boost::filesystem::path directory;
};
+
+#endif