fea:添加支持自定义使用boost::filesystem开关。

This commit is contained in:
taynpg 2024-12-24 16:57:41 +08:00
parent 1e83e393eb
commit 8b2905dadc

View File

@ -1,8 +1,15 @@
#include "of_path.h"
#include "of_str.h"
#include <filesystem>
#include <fstream>
#ifdef USE_BOOST_FILESYSTEM
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
#else
#include <filesystem>
namespace fs = std::filesystem;
#endif
#ifdef _WIN32
#include <windows.h>
#elif defined(__clang__) && defined(__APPLE__)
@ -16,7 +23,6 @@
#define PATH_MAX 256
#endif
namespace fs = std::filesystem;
namespace ofen {
COfPath::COfPath()
{