make tests green again
This commit is contained in:
parent
d23eb79849
commit
52c38f8535
2 changed files with 5 additions and 1 deletions
|
|
@ -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].}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue