From 8b2905dadc30a1a7351953b7130f83cff39b69b1 Mon Sep 17 00:00:00 2001 From: taynpg Date: Tue, 24 Dec 2024 16:57:41 +0800 Subject: [PATCH] =?UTF-8?q?fea=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BD=BF=E7=94=A8boost::fi?= =?UTF-8?q?lesystem=E5=BC=80=E5=85=B3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/of_path.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/of_path.cpp b/src/of_path.cpp index 27207f4..da47dde 100644 --- a/src/of_path.cpp +++ b/src/of_path.cpp @@ -1,8 +1,15 @@ #include "of_path.h" #include "of_str.h" -#include #include +#ifdef USE_BOOST_FILESYSTEM +#include +namespace fs = boost::filesystem; +#else +#include +namespace fs = std::filesystem; +#endif + #ifdef _WIN32 #include #elif defined(__clang__) && defined(__APPLE__) @@ -16,7 +23,6 @@ #define PATH_MAX 256 #endif -namespace fs = std::filesystem; namespace ofen { COfPath::COfPath() {