Use dcp::filesystem to wrap filesystem calls and fix_long_path
[dcpomatic.git] / src / lib / font_config.cc
index 8804bd6d96522b8aa2baf0a8b9e341405393766e..04f426cf97abc8eb4a5044861713ba95a1d26ae2 100644 (file)
@@ -24,6 +24,7 @@
 #include "font.h"
 #include "font_config.h"
 #include "util.h"
+#include <dcp/filesystem.h>
 #include <fontconfig/fontconfig.h>
 #include <boost/filesystem.hpp>
 #include <boost/optional.hpp>
@@ -48,7 +49,7 @@ FontConfig::~FontConfig()
 {
        for (auto file: _temp_files) {
                boost::system::error_code ec;
-               boost::filesystem::remove(file, ec);
+               dcp::filesystem::remove(file, ec);
        }
 }