diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-18 02:25:03 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-18 02:32:27 +0800 |
| commit | a194871b13d6691d6ede3f62165eaf91064fcfe9 (patch) | |
| tree | cc34873186258ac92f7437222f28d93c34ed402d /sysdeps/x86/bits | |
| parent | 7d889b99c1ec62252d2cb3d89ba2956a2d567928 (diff) | |
| download | glibc-a194871b13d6691d6ede3f62165eaf91064fcfe9.tar.xz glibc-a194871b13d6691d6ede3f62165eaf91064fcfe9.zip | |
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>
Diffstat (limited to 'sysdeps/x86/bits')
| -rw-r--r-- | sysdeps/x86/bits/platform/features.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/bits/platform/features.h b/sysdeps/x86/bits/platform/features.h index f02489266e..676ad0000a 100644 --- a/sysdeps/x86/bits/platform/features.h +++ b/sysdeps/x86/bits/platform/features.h @@ -20,7 +20,7 @@ # error "Never include <bits/platform/features.h> directly; use <sys/platform/x86.h> instead." #endif -static __inline__ _Bool +static __inline__ bool x86_cpu_cet_active (unsigned int __index) { return false; |
