From 3d8328abceba086ff502f38c6353792f7c590f1c Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Thu, 23 Jan 2020 18:18:01 -0700 Subject: [PATCH] Don't include stdbool.h for void and unreachable Fixes https://github.com/ziglang/zig/issues/4272 --- src/codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codegen.cpp b/src/codegen.cpp index 3d4d2a8c3..89edfc641 100644 --- a/src/codegen.cpp +++ b/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;