Skip to content

Commit

Permalink
import macros rather than import std/macros. (#13762)
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano authored Mar 26, 2020
1 parent 98753da commit 1b31e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pure/typetraits.nim
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ since (1, 1):
type StaticParam*[value] = object
## used to wrap a static value in `genericParams`

import std/macros
# NOTE: See https://github.com/nim-lang/Nim/issues/13758 - `import std/macros` does not work on OpenBSD
import macros

macro genericParamsImpl(T: typedesc): untyped =
# auxiliary macro needed, can't do it directly in `genericParams`
Expand Down

0 comments on commit 1b31e08

Please sign in to comment.