diff --git a/src/utils/log.hpp b/src/utils/log.hpp index f9fdc0ba..b45647a5 100644 --- a/src/utils/log.hpp +++ b/src/utils/log.hpp @@ -3,7 +3,7 @@ #include #include #include -#ifndef NDEBUG +#if !defined(NDEBUG) && !defined(_WIN32) #include #endif @@ -78,7 +78,7 @@ constexpr void trace(const std::string& fmt, Args... args) { template constexpr void panic_trace(const std::string& fmt, Args... args) { -#ifndef NDEBUG +#if !defined(NDEBUG) && !defined(_WIN32) Dl_info info; auto tmp = fmt::format(fmt + '\n', args...); tmp += "Called by:\n";