Don't include stdbool.h for void and unreachable

Fixes https://github.com/ziglang/zig/issues/4272
This commit is contained in:
Tadeo Kondrak 2020-01-23 18:18:01 -07:00 committed by Andrew Kelley
parent 357f42da6c
commit 3d8328abce

View File

@ -9787,6 +9787,7 @@ static void prepend_c_type_to_decl_list(CodeGen *g, GenH *gen_h, ZigType *type_e
zig_unreachable(); zig_unreachable();
case ZigTypeIdVoid: case ZigTypeIdVoid:
case ZigTypeIdUnreachable: case ZigTypeIdUnreachable:
return;
case ZigTypeIdBool: case ZigTypeIdBool:
g->c_want_stdbool = true; g->c_want_stdbool = true;
return; return;