fix windows build

pull/792/head
aguspiza 2019-06-29 02:06:09 +02:00 committed by Alexander Medvednikov
parent e9c00c3d39
commit 476c80ff08
1 changed files with 3 additions and 1 deletions

View File

@ -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 {