enable testing -d:nimHasLibFFI mode (#13091)

This commit is contained in:
Timothee Cour 2020-02-04 05:08:56 -08:00 • committed by GitHub
commit e70294dff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"