mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
bare: stdint.h
This commit is contained in:
parent
56fee6835a
commit
a545ccb740
3 changed files with 16 additions and 6 deletions
|
@ -234,7 +234,14 @@ pub fn (v mut V) compile() {
|
|||
$if js {
|
||||
cgen.genln(js_headers)
|
||||
} $else {
|
||||
if !v.pref.is_bare {
|
||||
cgen.genln('#include <inttypes.h>') // int64_t etc
|
||||
} else {
|
||||
cgen.genln('#include <stdint.h>')
|
||||
}
|
||||
|
||||
cgen.genln(c_builtin_types)
|
||||
|
||||
if !v.pref.is_bare {
|
||||
cgen.genln(c_headers)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue