[PATCH v2] sys/platform/x86.h: Do not depend on _Bool definition in C++ mode
Florian Weimer
fweimer@redhat.com
Tue Dec 17 18:27:09 GMT 2024
* H. J. Lu:
> 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>
Looks okay to me.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks,
Florian
More information about the Libc-alpha
mailing list