From 466a21fbf04f9b5ee1bcddc0f9cee6c454799006 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Sep 2024 21:13:57 +0200 Subject: Another fix for new boost. --- src/filesystem.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/filesystem.cc b/src/filesystem.cc index cb38ddfe..98c3d1b7 100644 --- a/src/filesystem.cc +++ b/src/filesystem.cc @@ -301,7 +301,13 @@ dcp::filesystem::rename(boost::filesystem::path const& old_path, boost::filesyst boost::filesystem::path dcp::filesystem::change_extension(boost::filesystem::path const& path, std::string const& new_extension) { +#ifdef LIBDCP_HAVE_REPLACE_EXTENSION + auto copy = path; + copy.replace_extension(new_extension); + return copy; +#else return boost::filesystem::change_extension(path, new_extension); +#endif } -- cgit v1.2.3