Don't include stdbool.h for void and unreachable
Fixes https://github.com/ziglang/zig/issues/4272
This commit is contained in:
parent
357f42da6c
commit
3d8328abce
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user