diff --git a/include/blt/compatibility.h b/include/blt/compatibility.h index 5414bc5..cfe0e85 100644 --- a/include/blt/compatibility.h +++ b/include/blt/compatibility.h @@ -26,4 +26,13 @@ #define BLT_CONTAINS(container, value) std::find(container.begin(), container.end(), value) != container.end() #endif +#define INCLUDE_FS \ + #if defined(CXX17_FILESYSTEM) || defined (CXX17_FILESYSTEM_LIBFS) \ + #include \ + #elif defined(CXX11_EXP_FILESYSTEM) || defined (CXX11_EXP_FILESYSTEM_LIBFS)\ + #include \ + #else\ + #error Filesystem ops not supported!\ + #endif + #endif //INSANE_DNS_COMPATIBILITY_H diff --git a/include/blt/std/logging.h b/include/blt/std/logging.h index 5694527..980bd7d 100755 --- a/include/blt/std/logging.h +++ b/include/blt/std/logging.h @@ -163,7 +163,13 @@ namespace blt::logging { #include #include #include - #include + #if defined(CXX17_FILESYSTEM) || defined (CXX17_FILESYSTEM_LIBFS) + #include + #elif defined(CXX11_EXP_FILESYSTEM) || defined (CXX11_EXP_FILESYSTEM_LIBFS) + #include + #else + #error Filesystem ops not supported! + #endif #include #include