Fix compilation on Windows
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user