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:
parent
d89986dd5e
commit
0d31b39f11
@ -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)
|
||||||
@ -5536,5 +5536,5 @@ pub fn get_guarded_include_text(iname string, imessage string) string {
|
|||||||
|#include $iname
|
|#include $iname
|
||||||
|#endif
|
|#endif
|
||||||
'.strip_margin()
|
'.strip_margin()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user