mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
__GNUC__ version checks are not valid on clang.
This commit is contained in:
parent
2595f983e6
commit
4399656e83
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user