From e7aae33cec0c51af4aec1cb24b9796fbfa2af122 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 21 Nov 2023 22:56:11 -0600 Subject: [PATCH] A couple fixes --- include/cpptrace/cpptrace.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cpptrace/cpptrace.hpp b/include/cpptrace/cpptrace.hpp index c0be82d..b35bed1 100644 --- a/include/cpptrace/cpptrace.hpp +++ b/include/cpptrace/cpptrace.hpp @@ -27,7 +27,7 @@ #define CPPTRACE_FORCE_NO_INLINE __attribute__((noinline)) #endif -#if _MSC_VER +#ifdef _MSC_VER #pragma warning(push) // warning C4251: using non-dll-exported type in dll-exported type, firing on std::vector and others for some // reason @@ -406,7 +406,7 @@ namespace cpptrace { } catch(...) { \ ::cpptrace::rethrow_and_wrap_if_needed(); \ } \ - } while(0); + } while(0) #define CPPTRACE_WRAP(expression) [&] () -> decltype((expression)) { \ try { \ @@ -416,7 +416,7 @@ namespace cpptrace { } \ } () -#if _MSC_VER +#ifdef _MSC_VER #pragma warning(pop) #endif