From 4399656e83ef05d9bc6dc308a60a8a11983f8104 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Oct 2022 14:01:18 +0200 Subject: [PATCH] __GNUC__ version checks are not valid on clang. --- public/client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 7be2b453..cbd969fe 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -1193,7 +1193,7 @@ static ProfilerData& GetProfilerData() // if this function is compiled into a shared object. Unfortunately, centos7 ships with glibc 2.17. If running // on old GCC, use the old-fashioned way as a workaround // See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85400 -#if defined(__GNUC__) && ((__GNUC__ < 8) || ((__GNUC__ == 8) && (__GNUC_MINOR__ < 4))) +#if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ < 8) || ((__GNUC__ == 8) && (__GNUC_MINOR__ < 4))) struct ProfilerThreadDataKey { public: