From 5d539c1a2fc271d21d351fe821b8e6c824ef8130 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 26 Oct 2023 20:01:01 -0400 Subject: [PATCH] fs hack --- include/blt/compatibility.h | 9 +++++++++ include/blt/std/logging.h | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) 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