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:
aguspiza 2019-06-29 02:06:09 +02:00 committed by Alexander Medvednikov
parent e9c00c3d39
commit 476c80ff08

View File

@ -5,6 +5,7 @@
module os module os
#include <sys/stat.h> #include <sys/stat.h>
const ( const (
args = []string args = []string
MAX_PATH = 4096 MAX_PATH = 4096
@ -476,7 +477,8 @@ pub fn getexepath() string {
} }
$if windows { $if windows {
return tos( result, C.GetModuleFileName( 0, result, MAX_PATH ) ) ret := int(C.GetModuleFileName( 0, result, MAX_PATH ))
return tos( result, ret)
} }
$if mac { $if mac {