GCC supports __has_builtin starting with version 10.

This commit is contained in:
grojo-ea
2024-08-17 20:08:15 -08:00
parent c11d898e3d
commit 123363eb82

View File

@@ -212,7 +212,7 @@
// EA_COMPILER_HAS_BUILTIN
#ifndef EA_COMPILER_HAS_BUILTIN
#if defined(__clang__)
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 10))
#define EA_COMPILER_HAS_BUILTIN(x) __has_builtin(x)
#else
#define EA_COMPILER_HAS_BUILTIN(x) 0