diff options
Diffstat (limited to 'lib/system/io.nim')
-rw-r--r-- | lib/system/io.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system/io.nim b/lib/system/io.nim index 31768eb38..300e7ea3f 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -143,13 +143,13 @@ proc raiseEOF() {.noinline, noreturn.} = proc strerror(errnum: cint): cstring {.importc, header: "<string.h>".} -when not defined(NimScript): +when not defined(nimscript): var errno {.importc, header: "<errno.h>".}: cint ## error variable EINTR {.importc: "EINTR", header: "<errno.h>".}: cint proc checkErr(f: File) = - when not defined(NimScript): + when not defined(nimscript): if c_ferror(f) != 0: let msg = "errno: " & $errno & " `" & $strerror(errno) & "`" c_clearerr(f) @@ -452,7 +452,7 @@ proc readLine*(f: File, line: var string): bool {.tags: [ReadIOEffect], # likely other io procs need this for correctness. fgetsSuccess = c_fgets(addr line[pos], sp.cint, f) != nil if fgetsSuccess: break - when not defined(NimScript): + when not defined(nimscript): if errno == EINTR: errno = 0 c_clearerr(f) |