google / sandboxed-api

Generate sandboxes for C/C++ libraries automatically
https://developers.google.com/sandboxed-api/
Apache License 2.0
1.65k stars 189 forks source link

New generator fails to convert `_Bool` to `bool` #154

Closed DemiMarie closed 2 years ago

DemiMarie commented 2 years ago

C’s _Bool needs to be converted to C++’s bool. This breaks the libzip build after some other patches have been applied to fix other errors.

cblichmann commented 2 years ago

There's a TODO for this: https://github.com/google/sandboxed-api/blob/main/sandboxed_api/tools/clang_generator/types.cc#L220

DemiMarie commented 2 years ago

I worked around it by using typedef bool _Bool;, though this is technically undefined behavior.