Use dcp::filesystem to wrap filesystem calls and fix_long_path
[dcpomatic.git] / src / wx / system_font_dialog.cc
index 1681dd1e3744f5e485bc3bc829acef6094e20ba6..84285de12e35c6d0e6f09a4f5f0bff7dc3e10ed5 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "system_font_dialog.h"
 #include "wx_util.h"
+#include <dcp/filesystem.h>
 #include <dcp/warnings.h>
 LIBDCP_DISABLE_WARNINGS
 #include <wx/listctrl.h>
@@ -43,7 +44,7 @@ SystemFontDialog::SystemFontDialog (wxWindow* parent)
                fonts = boost::filesystem::path (windir) / "Fonts";
        }
 
-       for (auto i: boost::filesystem::directory_iterator (fonts)) {
+       for (auto i: dcp::filesystem::directory_iterator(fonts)) {
                auto ext = i.path().extension().string();
                transform (ext.begin(), ext.end(), ext.begin(), ::tolower);