We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2586237 commit 49d9523Copy full SHA for 49d9523
1 file changed
include/AsyncLogger/Logger.hpp
@@ -1,5 +1,5 @@
1
#pragma once
2
-#ifndef USE_FMT
+#if !defined(USE_FMT) && CXX_FORMAT_SUPPORT
3
#include <format>
4
#define FORMAT std::format
5
#define VFORMAT std::vformat
@@ -73,4 +73,4 @@ namespace al
73
auto capture = LogCapture(level, std::move(formatString.Location()));
74
capture << VFORMAT(formatString.FormatString(), MAKE_FORMAT_ARGS(std::forward<Args>(formatArgs)...));
75
}
76
-}
+}
0 commit comments