Fix compilation on Windows

This commit is contained in:
Simone Coco
2024-05-17 12:02:29 +02:00
parent f35001e5c5
commit e841befdb7

View File

@@ -3,7 +3,7 @@
#include <fmt/format.h> #include <fmt/format.h>
#include <fmt/color.h> #include <fmt/color.h>
#include <string> #include <string>
#ifndef NDEBUG #if !defined(NDEBUG) && !defined(_WIN32)
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
@@ -78,7 +78,7 @@ constexpr void trace(const std::string& fmt, Args... args) {
template <typename ...Args> template <typename ...Args>
constexpr void panic_trace(const std::string& fmt, Args... args) { constexpr void panic_trace(const std::string& fmt, Args... args) {
#ifndef NDEBUG #if !defined(NDEBUG) && !defined(_WIN32)
Dl_info info; Dl_info info;
auto tmp = fmt::format(fmt + '\n', args...); auto tmp = fmt::format(fmt + '\n', args...);
tmp += "Called by:\n"; tmp += "Called by:\n";