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