use stdint.h with msvc

pull/3006/head
Alexander Medvednikov 2019-12-07 19:20:53 +03:00
parent 7d58dc2350
commit 93529031de
1 changed files with 5 additions and 1 deletions

View File

@ -246,7 +246,11 @@ pub fn (v mut V) compile() {
cgen.genln(js_headers)
} $else {
if !v.pref.is_bare {
cgen.genln('#include <inttypes.h>') // int64_t etc
$if msvc {
cgen.genln('#include <stdint.h>')
} $else {
cgen.genln('#include <inttypes.h>') // int64_t etc
}
} else {
cgen.genln('#include <stdint.h>')
}