mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
[std/encodings] fix iconv headers on OpenBSD (#17872)
This commit is contained in:
@@ -282,8 +282,10 @@ else:
|
||||
|
||||
var errno {.importc, header: "<errno.h>".}: cint
|
||||
|
||||
when defined(freebsd) or defined(netbsd):
|
||||
when defined(bsd):
|
||||
{.pragma: importIconv, cdecl, header: "<iconv.h>".}
|
||||
when defined(openbsd):
|
||||
{.passL: "-liconv".}
|
||||
else:
|
||||
{.pragma: importIconv, cdecl, dynlib: iconvDll.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user