enable testing -d:nimHasLibFFI mode (#13091)

This commit is contained in:
Timothee Cour
2020-02-04 05:08:56 -08:00
committed by GitHub
parent b20d7e2110
commit e70294dff2
8 changed files with 110 additions and 96 deletions

View File

@@ -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"

View File

@@ -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"