This commit is contained in:
slangmgh
2020-05-03 15:46:42 +08:00
committed by GitHub
parent 49b28f1997
commit b447ff7860

View File

@@ -1079,7 +1079,7 @@ when defined(windows) and not weirdTarget:
template findNextFile(a, b: untyped): untyped = findNextFileA(a, b)
template getCommandLine(): untyped = getCommandLineA()
template getFilename(f: untyped): untyped = $f.cFileName
template getFilename(f: untyped): untyped = $cstring(addr f.cFileName)
proc skipFindData(f: WIN32_FIND_DATA): bool {.inline.} =
# Note - takes advantage of null delimiter in the cstring