mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
Fix missing header file for Boost version.
Additionally, added check for the presence of BOOST_VERSION macro.
This commit is contained in:
committed by
GitHub
parent
3f40ac0aa2
commit
1c72009019
@@ -1,6 +1,7 @@
|
||||
#include "XmlExporter.h"
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/property_tree/xml_parser.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include "exporterTools.h"
|
||||
|
||||
using std::string;
|
||||
@@ -20,6 +21,10 @@ void XmlExporter::exportAnimation(const boost::filesystem::path& inputFilePath,
|
||||
mouthCueElement.put("<xmlattr>.end", formatDuration(timedShape.getEnd()));
|
||||
}
|
||||
|
||||
#ifndef BOOST_VERSION //present in version.hpp
|
||||
#error "Could not detect Boost version."
|
||||
#endif
|
||||
|
||||
#if BOOST_VERSION < 105600 // Support legacy syntax
|
||||
using writer_setting = boost::property_tree::xml_writer_settings<char>;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user