Files
Simonas Kazlauskas 3ff0188486 Library & Symbol exist on supported platforms only
This makes the error messages and use of this library on targets such as
wasm32-unknown-unknown much more straightforward.
2021-11-15 21:44:39 +02:00

14 lines
458 B
Rust

extern crate libc;
extern crate libloading;
extern crate static_assertions;
#[cfg(all(test, unix))]
mod unix {
use super::static_assertions::const_assert_eq;
const_assert_eq!(libloading::os::unix::RTLD_LOCAL, libc::RTLD_LOCAL);
const_assert_eq!(libloading::os::unix::RTLD_GLOBAL, libc::RTLD_GLOBAL);
const_assert_eq!(libloading::os::unix::RTLD_NOW, libc::RTLD_NOW);
const_assert_eq!(libloading::os::unix::RTLD_LAZY, libc::RTLD_LAZY);
}