1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

use stdint.h with msvc

This commit is contained in:
Alexander Medvednikov 2019-12-07 19:20:53 +03:00
parent 7d58dc2350
commit 93529031de

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