Skip to content

Commit

Permalink
cgen: fix typo (build-essentials -> build-essential) in error mes…
Browse files Browse the repository at this point in the history
…sages
  • Loading branch information
spytheman committed Aug 18, 2024
1 parent ae1b9ed commit 18eee34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -837,11 +837,12 @@ pub fn (mut g Gen) init() {
g.cheaders.writeln('#include <inttypes.h>')
g.cheaders.writeln('#include <stddef.h>')
} else {
g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'The C compiler can not find <inttypes.h>. Please install build-essentials')) // int64_t etc
install_compiler_msg := ' Please install the package `build-essential`.'
g.cheaders.writeln(get_guarded_include_text('<inttypes.h>', 'The C compiler can not find <inttypes.h>.${install_compiler_msg}')) // int64_t etc
if g.pref.os == .ios {
g.cheaders.writeln(get_guarded_include_text('<stdbool.h>', 'The C compiler can not find <stdbool.h>. Please install build-essentials')) // bool, true, false
g.cheaders.writeln(get_guarded_include_text('<stdbool.h>', 'The C compiler can not find <stdbool.h>.${install_compiler_msg}')) // bool, true, false
}
g.cheaders.writeln(get_guarded_include_text('<stddef.h>', 'The C compiler can not find <stddef.h>. Please install build-essentials')) // size_t, ptrdiff_t
g.cheaders.writeln(get_guarded_include_text('<stddef.h>', 'The C compiler can not find <stddef.h>.${install_compiler_msg}')) // size_t, ptrdiff_t
}
}
if g.pref.nofloat {
Expand Down

0 comments on commit 18eee34

Please sign in to comment.