diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-04 05:08:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 14:08:56 +0100 |
commit | e70294dff2e0393d36a6ae64efb018f3fb5ae2a5 (patch) | |
tree | 9e47fee0729874e186d00b53d5e584c3040bf469 /lib | |
parent | b20d7e2110d3d8ab406d44f2231120847e6fea05 (diff) | |
download | Nim-e70294dff2e0393d36a6ae64efb018f3fb5ae2a5.tar.gz |
enable testing -d:nimHasLibFFI mode (#13091)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/ansi_c.nim | 2 | ||||
-rw-r--r-- | lib/system/io.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index cb2303b61..1ff15611c 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -117,7 +117,7 @@ type CFilePtr* = ptr CFile ## The type representing a file handle. # duplicated between io and ansi_c -const stdioUsesMacros = defined(osx) and not defined(emscripten) +const stdioUsesMacros = (defined(osx) or defined(bsd)) and not defined(emscripten) const stderrName = when stdioUsesMacros: "__stderrp" else: "stderr" const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout" const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin" diff --git a/lib/system/io.nim b/lib/system/io.nim index 8e3acd0b9..5f4c7d6d7 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -36,7 +36,7 @@ type # text file handling: when not defined(nimscript) and not defined(js): # duplicated between io and ansi_c - const stdioUsesMacros = defined(osx) and not defined(emscripten) + const stdioUsesMacros = (defined(osx) or defined(bsd)) and not defined(emscripten) const stderrName = when stdioUsesMacros: "__stderrp" else: "stderr" const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout" const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin" |