Commit fe21244b055dbcf3805d105f48437f36db2f25be

Guillem Jover 2022-12-20T22:47:02

include: Use __has_builtin to detect __builtin_offsetof support The __has_builtin operator is more specific and is supported by GCC and Clang, while __is_identifier() is less specific and only supported by Clang, so we should prefer the former whenever it is available, and only fallback to use the latter when the former is missing and the latter.