diff options
author | Euan <euantorano@users.noreply.github.com> | 2020-03-23 20:39:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 21:39:40 +0100 |
commit | c0dbcffca643ac79e0c03c9509e92f5841b38a94 (patch) | |
tree | 951c997c6eeb14d1e6babc5be0bf50396d584e90 /lib | |
parent | 4fb7f076d89ca52704c78e0c984d41ba9d48ae5b (diff) | |
download | Nim-c0dbcffca643ac79e0c03c9509e92f5841b38a94.tar.gz |
__stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/ansi_c.nim | 2 | ||||
-rw-r--r-- | lib/system/io.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 1ff15611c..0b4b25992 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -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" diff --git a/lib/system/io.nim b/lib/system/io.nim index 7b9a893bb..98d9347be 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -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" |