cgen: improve error message for <inttypes.h>

pull/6651/head
Delyan Angelov 2020-10-19 12:44:53 +03:00
parent d89986dd5e
commit 0d31b39f11
1 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ pub fn (mut g Gen) init() {
g.cheaders.writeln(g.pref.custom_prelude)
} else if !g.pref.no_preludes {
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)
if g.pref.is_bare {
g.cheaders.writeln(bare_c_headers)
@ -5536,5 +5536,5 @@ pub fn get_guarded_include_text(iname string, imessage string) string {
|#include $iname
|#endif
'.strip_margin()
return res
}
return res
}