mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +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
|
// 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
|
// on old GCC, use the old-fashioned way as a workaround
|
||||||
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85400
|
// 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
|
struct ProfilerThreadDataKey
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user