Use dcp::filesystem to wrap filesystem calls and fix_long_path
[dcpomatic.git] / src / lib / cross_linux.cc
index 0a12d7ccadc42e28f0edda0fed7fe13282d03e7e..015158aa8b1a7eee4f15e43c46d094300dc3f657 100644 (file)
@@ -26,6 +26,7 @@
 #include "dcpomatic_log.h"
 #include "exceptions.h"
 #include "log.h"
+#include <dcp/filesystem.h>
 #include <dcp/raw_convert.h>
 #include <dcp/warnings.h>
 #include <glib.h>
@@ -94,7 +95,7 @@ libdcp_resources_path ()
        if (auto appdir = getenv("APPDIR")) {
                return boost::filesystem::path(appdir) / "usr" / "share" / "libdcp";
        }
-       return boost::filesystem::canonical(LINUX_SHARE_PREFIX) / "libdcp";
+       return dcp::filesystem::canonical(LINUX_SHARE_PREFIX) / "libdcp";
 }
 
 
@@ -153,7 +154,7 @@ boost::filesystem::path
 openssl_path ()
 {
        auto p = directory_containing_executable() / "dcpomatic2_openssl";
-       if (boost::filesystem::is_regular_file(p)) {
+       if (dcp::filesystem::is_regular_file(p)) {
                return p;
        }