diff options
| author | Tadeo Kondrak <me@tadeo.ca> | 2020-01-23 18:18:01 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-23 23:24:45 -0500 |
| commit | 3d8328abceba086ff502f38c6353792f7c590f1c (patch) | |
| tree | 60f17aaca2342c72fc587217a4d2cb2ff78a6b3d /src/codegen.cpp | |
| parent | 357f42da6c2f158fff2afa28a56b7e0e7a8a5963 (diff) | |
| download | zig-3d8328abceba086ff502f38c6353792f7c590f1c.tar.gz zig-3d8328abceba086ff502f38c6353792f7c590f1c.zip | |
Don't include stdbool.h for void and unreachable
Fixes https://github.com/ziglang/zig/issues/4272
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 3d4d2a8c31..89edfc6412 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; |
