From ded5b81fa4f7758a35a1fe5f8baf67632d84f4c0 Mon Sep 17 00:00:00 2001 From: Marcos Slomp Date: Mon, 9 Oct 2023 13:19:46 -0700 Subject: [PATCH] eliminate "already defined" warning when passing TRACY_DELAYED_INIT to the compiler on Apple clients --- public/client/TracyProfiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 0469273729..ed580123a7 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -83,7 +83,9 @@ #endif #ifdef __APPLE__ -# define TRACY_DELAYED_INIT +# ifndef TRACY_DELAYED_INIT +# define TRACY_DELAYED_INIT +# endif #else # ifdef __GNUC__ # define init_order( val ) __attribute__ ((init_priority(val)))