| ... | ... | @@ -9515,7 +9515,11 @@ static void prepend_c_type_to_decl_list(CodeGen *g, GenH *gen_h, ZigType *type_e |
| 9515 | 9515 | case ZigTypeIdVoid: |
| 9516 | 9516 | case ZigTypeIdUnreachable: |
| 9517 | 9517 | case ZigTypeIdBool: |
| 9518 | g->c_want_stdbool = true; |
| 9519 | return; |
| 9518 | 9520 | case ZigTypeIdInt: |
| 9521 | g->c_want_stdint = true; |
| 9522 | return; |
| 9519 | 9523 | case ZigTypeIdFloat: |
| 9520 | 9524 | return; |
| 9521 | 9525 | case ZigTypeIdOpaque: |
| ... | ... | @@ -9596,7 +9600,6 @@ static void get_c_type(CodeGen *g, GenH *gen_h, ZigType *type_entry, Buf *out_bu |
| 9596 | 9600 | break; |
| 9597 | 9601 | case ZigTypeIdBool: |
| 9598 | 9602 | buf_init_from_str(out_buf, "bool"); |
| 9599 | | g->c_want_stdbool = true; |
| 9600 | 9603 | break; |
| 9601 | 9604 | case ZigTypeIdUnreachable: |
| 9602 | 9605 | buf_init_from_str(out_buf, "__attribute__((__noreturn__)) void"); |
| ... | ... | @@ -9620,7 +9623,6 @@ static void get_c_type(CodeGen *g, GenH *gen_h, ZigType *type_entry, Buf *out_bu |
| 9620 | 9623 | } |
| 9621 | 9624 | break; |
| 9622 | 9625 | case ZigTypeIdInt: |
| 9623 | | g->c_want_stdint = true; |
| 9624 | 9626 | buf_resize(out_buf, 0); |
| 9625 | 9627 | buf_appendf(out_buf, "%sint%" PRIu32 "_t", |
| 9626 | 9628 | type_entry->data.integral.is_signed ? "" : "u", |