From 048e20b68ce70c89107a6d39d58519c627db5657 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 11 Sep 2022 13:09:59 +0200 Subject: [PATCH] Check for macro existence before checking its value. --- public/common/TracyYield.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/common/TracyYield.hpp b/public/common/TracyYield.hpp index 7b8ccef0..035836cd 100644 --- a/public/common/TracyYield.hpp +++ b/public/common/TracyYield.hpp @@ -1,7 +1,7 @@ #ifndef __TRACYYIELD_HPP__ #define __TRACYYIELD_HPP__ -#if defined __SSE2__ || defined _M_AMD64 || _M_IX86_FP == 2 +#if defined __SSE2__ || defined _M_AMD64 || (defined _M_IX86_FP && _M_IX86_FP == 2) # include #else # include @@ -14,7 +14,7 @@ namespace tracy static tracy_force_inline void YieldThread() { -#if defined __SSE2__ || defined _M_AMD64 || _M_IX86_FP == 2 +#if defined __SSE2__ || defined _M_AMD64 || (defined _M_IX86_FP && _M_IX86_FP == 2) _mm_pause(); #elif defined __aarch64__ asm volatile( "isb" : : );