From e841befdb7f210d7aab2f683767715de762b38bd Mon Sep 17 00:00:00 2001 From: Simone Coco Date: Fri, 17 May 2024 12:02:29 +0200 Subject: [PATCH] Fix compilation on Windows --- src/utils/log.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";