1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: improve error message for <inttypes.h>

This commit is contained in:
Delyan Angelov 2020-10-19 12:44:53 +03:00
parent d89986dd5e
commit 0d31b39f11

View File

@ -282,7 +282,7 @@ pub fn (mut g Gen) init() {
g.cheaders.writeln(g.pref.custom_prelude) g.cheaders.writeln(g.pref.custom_prelude)
} else if !g.pref.no_preludes { } else if !g.pref.no_preludes {
g.cheaders.writeln('// Generated by the V compiler') g.cheaders.writeln('// Generated by the V compiler')
g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'Please install build-essentials')) // int64_t etc g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'The C compiler can not find <inttypes.h> . Please install build-essentials')) // int64_t etc
g.cheaders.writeln(c_builtin_types) g.cheaders.writeln(c_builtin_types)
if g.pref.is_bare { if g.pref.is_bare {
g.cheaders.writeln(bare_c_headers) g.cheaders.writeln(bare_c_headers)