From eeee2165c1fcd40ea94f5261ee659a3de10b3b47 Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Fri, 10 Nov 2023 22:01:30 +0300 Subject: [PATCH] symbol declaration moved from struct --- runtime/druntime/src/core/time.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/druntime/src/core/time.d b/runtime/druntime/src/core/time.d index 74f497086cf..024a4347254 100644 --- a/runtime/druntime/src/core/time.d +++ b/runtime/druntime/src/core/time.d @@ -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 @@ -2210,8 +2214,6 @@ struct MonoTimeImpl(ClockType clockType) } else version (FreeStanding) { - extern(C) long currTicks() @trusted nothrow @nogc; - return MonoTimeImpl(currTicks); } }