Skip to content

Commit

Permalink
Merge pull request #38 from KristofferC/patch-1
Browse files Browse the repository at this point in the history
move Requires import to within the extension check
  • Loading branch information
ChrisRackauckas authored Aug 10, 2024
2 parents 524ace8 + fd67cf7 commit 5d6a10a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/StaticArrayInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ include("indexing.jl")
include("stridelayout.jl")
include("broadcast.jl")

import Requires
@static if !isdefined(Base, :get_extension)
import Requires
end

@static if !isdefined(Base, :get_extension)
function __init__()
Requires.@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" begin include("../ext/StaticArrayInterfaceStaticArraysExt.jl") end
Expand Down

0 comments on commit 5d6a10a

Please sign in to comment.