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

fix Windows build

This commit is contained in:
Alexander Medvednikov
2019-07-25 15:05:44 +02:00
parent 2ac579ca0a
commit f7530234c7
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ const (
// Given a root key look for the subkey 'version' and get the path
fn find_windows_kit_internal(key RegKey, version string) ?string {
mut required_bytes := 0
required_bytes := 0 // TODO mut
result := C.RegQueryValueExW(key, version.to_wide(), 0, 0, 0, &required_bytes)
length := required_bytes / 2
@@ -388,4 +388,5 @@ fn build_thirdparty_obj_file_with_msvc(flag string) {
res := os.exec('""$msvc.exe_path\\cl.exe" /volatile:ms /Z7 $include_string /c $cfiles /Fo"$obj_path" /D_UNICODE /DUNICODE"')
println(res)
}
}