__GNUC__ version checks are not valid on clang.

This commit is contained in:
Bartosz Taudul 2022-10-08 14:01:18 +02:00
parent 2595f983e6
commit 4399656e83
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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: