__stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)
This commit is contained in:
parent
4fb7f076d8
commit
c0dbcffca6
2 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ type
|
||||||
CFilePtr* = ptr CFile ## The type representing a file handle.
|
CFilePtr* = ptr CFile ## The type representing a file handle.
|
||||||
|
|
||||||
# duplicated between io and ansi_c
|
# 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 stderrName = when stdioUsesMacros: "__stderrp" else: "stderr"
|
||||||
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
|
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
|
||||||
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
|
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ type
|
||||||
# text file handling:
|
# text file handling:
|
||||||
when not defined(nimscript) and not defined(js):
|
when not defined(nimscript) and not defined(js):
|
||||||
# duplicated between io and ansi_c
|
# 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 stderrName = when stdioUsesMacros: "__stderrp" else: "stderr"
|
||||||
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
|
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
|
||||||
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
|
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue