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:
@@ -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')
|
||||
|
||||
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user