__stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)

This commit is contained in:
Euan
2020-03-23 20:39:40 +00:00
committed by GitHub
parent 4fb7f076d8
commit c0dbcffca6
2 changed files with 2 additions and 2 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) or defined(bsd)) and not defined(emscripten)
const stdioUsesMacros = (defined(osx) or defined(freebsd) or defined(dragonfly)) 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

@@ -39,7 +39,7 @@ type
# text file handling:
when not defined(nimscript) and not defined(js):
# duplicated between io and ansi_c
const stdioUsesMacros = (defined(osx) or defined(bsd)) and not defined(emscripten)
const stdioUsesMacros = (defined(osx) or defined(freebsd) or defined(dragonfly)) 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"