Skip to content

Commit

Permalink
check workaround for macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mr committed Oct 18, 2020
1 parent f7d6f57 commit 6fc4193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pure/terminal.nim
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ else:

var L_ctermid{.importc, header: "<stdio.h>".}: cint

when defined(macosx):
{.passl: "-lc".}
proc terminalWidth*(): int =
## Returns some reasonable terminal width from either standard file
## descriptors, controlling terminal, environment variables or tradition.
Expand Down

0 comments on commit 6fc4193

Please sign in to comment.