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() {