Skip to content

Commit

Permalink
refactor: use Libdl.dlext instead of manual settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer1004 committed Jun 4, 2023
1 parent 0fbcbc3 commit bf52dba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wrapper.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module Wrapper

using DocStringExtensions: SIGNATURES
using Libdl: dlopen, dlsym
using Libdl: dlext, dlopen, dlsym
using ..PolarizedBRF

export run_pbrf

const LIBPBRF = joinpath(@__DIR__, "..", "shared",
"libpbrf" * (Sys.iswindows() ? ".dll" : Sys.islinux() ? ".so" : ".dylib"))
const LIBPBRF = joinpath(@__DIR__, "..", "shared", "libpbrf." * dlext)

"""
Calculate the Fourier coefficients of the refletion matrix using PolarizedBRF.
Expand Down

0 comments on commit bf52dba

Please sign in to comment.