mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
sys/platform/x86.h: Do not depend on _Bool definition in C++ mode
Clang does not define _Bool for -std=c++98: /usr/include/bits/platform/features.h:31:19: error: unknown type name '_Bool' 31 | static __inline__ _Bool | ^ Change _Bool to bool to silence clang++ error. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@ -28,7 +28,7 @@ enum
|
||||
x86_feature_1_shstk = 1U << 1
|
||||
};
|
||||
|
||||
static __inline__ _Bool
|
||||
static __inline__ bool
|
||||
x86_cpu_cet_active (unsigned int __index)
|
||||
{
|
||||
#ifdef __x86_64__
|
||||
|
Reference in New Issue
Block a user