Skip to content

Commit

Permalink
symbol declaration moved from struct
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Nov 10, 2023
1 parent 1bab359 commit eeee216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/druntime/src/core/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,10 @@ private size_t _clockTypeIdx(ClockType clockType)
assert(0);
}

version (FreeStanding)
{
extern(C) long currTicks() @trusted nothrow @nogc;
}

/++
alias for $(D MonoTimeImpl) instantiated with $(D ClockType.normal). This is
Expand Down Expand Up @@ -2210,8 +2214,6 @@ struct MonoTimeImpl(ClockType clockType)
}
else version (FreeStanding)
{
extern(C) long currTicks() @trusted nothrow @nogc;

return MonoTimeImpl(currTicks);
}
}
Expand Down

0 comments on commit eeee216

Please sign in to comment.