gecko-dev/third_party/rust/libloading/tests/constants.rs
Mike Hommey 79b66d492e Bug 1744669 - Bulk update of rust crates. i, l. r=emilio
This updates all crates that can be updated with no addition of new
crates, that start with letter i or l.

Differential Revision: https://phabricator.services.mozilla.com/D133031
2021-12-10 04:24:55 +00:00

13 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);
}