1
0
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:
H.J. Lu
2024-12-18 02:25:03 +08:00
parent 7d889b99c1
commit a194871b13
3 changed files with 4 additions and 4 deletions

View File

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