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

minor fixes and cleaning up

This commit is contained in:
Alexander Medvednikov
2020-01-04 00:06:01 +01:00
parent aeda48d94e
commit 3344111a03
7 changed files with 25 additions and 48 deletions

View File

@@ -441,7 +441,7 @@ fn (c mut V) cc_windows_cross() {
mut cmd := ''
cmd = ''
$if macos {
cmd = 'x86_64-w64-mingw32-gcc $args -municode'
cmd = 'x86_64-w64-mingw32-gcc -std=gnu11 $args -municode'
}
$else {
panic('your platform is not supported yet')

View File

@@ -20,7 +20,12 @@ fn (p mut Parser) string_expr() {
*/
if (p.calling_c && p.peek() != .dot) || is_cstr || (p.pref.translated && p.mod == 'main') {
p.gen('"$f"')
if p.os == .windows {
p.gen('L"$f"')
}
else {
p.gen('"$f"')
}
}
else if p.is_sql {
p.gen("'$str'")