make tests green again
This commit is contained in:
parent
d23eb79849
commit
52c38f8535
2 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ proc nimLoadLibraryError(path: string) =
|
||||||
stderr.rawWrite("could not load: ")
|
stderr.rawWrite("could not load: ")
|
||||||
stderr.rawWrite(path)
|
stderr.rawWrite(path)
|
||||||
stderr.rawWrite("\n")
|
stderr.rawWrite("\n")
|
||||||
when not(defined(nimDebugDlOpen)):
|
when not defined(nimDebugDlOpen) and not defined(windows):
|
||||||
stderr.rawWrite("compile with -d:nimDebugDlOpen for more information\n")
|
stderr.rawWrite("compile with -d:nimDebugDlOpen for more information\n")
|
||||||
quit(1)
|
quit(1)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,10 @@ proc c_clearerr(f: File) {.
|
||||||
proc c_feof(f: File): cint {.
|
proc c_feof(f: File): cint {.
|
||||||
importc: "feof", header: "<stdio.h>".}
|
importc: "feof", header: "<stdio.h>".}
|
||||||
|
|
||||||
|
when not declared(c_fwrite):
|
||||||
|
proc c_fwrite(buf: pointer, size, n: csize, f: File): cint {.
|
||||||
|
importc: "fwrite", header: "<stdio.h>".}
|
||||||
|
|
||||||
# C routine that is used here:
|
# C routine that is used here:
|
||||||
proc c_fread(buf: pointer, size, n: csize, f: File): csize {.
|
proc c_fread(buf: pointer, size, n: csize, f: File): csize {.
|
||||||
importc: "fread", header: "<stdio.h>", tags: [ReadIOEffect].}
|
importc: "fread", header: "<stdio.h>", tags: [ReadIOEffect].}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue