v1
Brett 2023-10-26 20:01:01 -04:00
parent a3179d1a36
commit 5d539c1a2f
2 changed files with 16 additions and 1 deletions

View File

@ -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 <filesystem>\
#elif defined(CXX11_EXP_FILESYSTEM) || defined (CXX11_EXP_FILESYSTEM_LIBFS)\
#include <experimental/filesystem>\
#else\
#error Filesystem ops not supported!\
#endif
#endif //INSANE_DNS_COMPATIBILITY_H

View File

@ -163,7 +163,13 @@ namespace blt::logging {
#include <thread>
#include <cstdarg>
#include <iostream>
#if defined(CXX17_FILESYSTEM) || defined (CXX17_FILESYSTEM_LIBFS)
#include <filesystem>
#elif defined(CXX11_EXP_FILESYSTEM) || defined (CXX11_EXP_FILESYSTEM_LIBFS)
#include <experimental/filesystem>
#else
#error Filesystem ops not supported!
#endif
#include <ios>
#include <fstream>