Commit 3d8328abce

Tadeo Kondrak <me@tadeo.ca>
2020-01-24 02:18:01
Don't include stdbool.h for void and unreachable
Fixes https://github.com/ziglang/zig/issues/4272
1 parent 357f42d
Changed files (1)
src/codegen.cpp
@@ -9787,6 +9787,7 @@ static void prepend_c_type_to_decl_list(CodeGen *g, GenH *gen_h, ZigType *type_e
             zig_unreachable();
         case ZigTypeIdVoid:
         case ZigTypeIdUnreachable:
+            return;
         case ZigTypeIdBool:
             g->c_want_stdbool = true;
             return;