mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-18 17:08:32 +00:00
__stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user