We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3551844 commit 0844fd3Copy full SHA for 0844fd3
ni-fpga-sys/src/lib.rs
@@ -48,7 +48,10 @@ pub type Status = i32;
48
49
use std::{ffi::c_char, fmt};
50
51
-use dlopen::wrapper::{Container, WrapperApi};
+use dlopen::{
52
+ utils::platform_file_name,
53
+ wrapper::{Container, WrapperApi},
54
+};
55
56
use dlopen_derive::WrapperApi;
57
@@ -168,7 +171,7 @@ pub struct NiFpgaApi {
168
171
169
172
impl NiFpgaApi {
170
173
pub fn load() -> Result<NiFpgaApiContainer, DlOpenError> {
- match unsafe { Container::load("NiFpga") } {
174
+ match unsafe { Container::load(platform_file_name("NiFpga")) } {
175
Ok(api) => Ok(api),
176
Err(err) => Err(DlOpenError(err)),
177
}
0 commit comments