make tests green again

This commit is contained in:
Andreas Rumpf 2017-02-08 22:42:48 +01:00
commit 52c38f8535
2 changed files with 5 additions and 1 deletions

View file

@ -37,6 +37,10 @@ proc c_clearerr(f: File) {.
proc c_feof(f: File): cint {.
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:
proc c_fread(buf: pointer, size, n: csize, f: File): csize {.
importc: "fread", header: "<stdio.h>", tags: [ReadIOEffect].}