Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-08 15:01:18 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-08 15:04:54 +0300
commit4399656e83ef05d9bc6dc308a60a8a11983f8104 (patch)
tree13b3c8148201c54bb4900fa92a360f6af6defd5d /public
parent2595f983e6df0ed57008948809cf142718a7b1af (diff)
__GNUC__ version checks are not valid on clang.
Diffstat (limited to 'public')
-rw-r--r--public/client/TracyProfiler.cpp2
1 files changed, 1 insertions, 1 deletions
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: