Skip to content

Commit 5d6a10a

Browse files
Merge pull request #38 from KristofferC/patch-1
move Requires import to within the extension check
2 parents 524ace8 + fd67cf7 commit 5d6a10a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/StaticArrayInterface.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,10 @@ include("indexing.jl")
486486
include("stridelayout.jl")
487487
include("broadcast.jl")
488488

489-
import Requires
489+
@static if !isdefined(Base, :get_extension)
490+
import Requires
491+
end
492+
490493
@static if !isdefined(Base, :get_extension)
491494
function __init__()
492495
Requires.@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" begin include("../ext/StaticArrayInterfaceStaticArraysExt.jl") end

0 commit comments

Comments
 (0)