bare: stdint.h

This commit is contained in:
Alexander Medvednikov 2019-11-16 11:10:38 +03:00
parent 56fee6835a
commit a545ccb740
3 changed files with 16 additions and 6 deletions

View file

@ -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)
}