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:
parent
e9c00c3d39
commit
476c80ff08
4
os/os.v
4
os/os.v
@ -5,6 +5,7 @@
|
||||
module os
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
const (
|
||||
args = []string
|
||||
MAX_PATH = 4096
|
||||
@ -476,7 +477,8 @@ pub fn getexepath() string {
|
||||
}
|
||||
|
||||
$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 {
|
||||
|
Loading…
Reference in New Issue
Block a user