Haibo Huang | 32890e1 | 2020-08-24 14:31:44 -0700 | [diff] [blame] | 1 | extern crate libc; |
David LeGare | faeb5c9 | 2022-03-02 16:20:16 +0000 | [diff] [blame] | 2 | extern crate libloading; |
Haibo Huang | 32890e1 | 2020-08-24 14:31:44 -0700 | [diff] [blame] | 3 | extern crate static_assertions; |
| 4 | |
| 5 | #[cfg(all(test, unix))] |
| 6 | mod unix { |
| 7 | use super::static_assertions::const_assert_eq; |
| 8 | |
| 9 | const_assert_eq!(libloading::os::unix::RTLD_LOCAL, libc::RTLD_LOCAL); |
| 10 | const_assert_eq!(libloading::os::unix::RTLD_GLOBAL, libc::RTLD_GLOBAL); |
| 11 | const_assert_eq!(libloading::os::unix::RTLD_NOW, libc::RTLD_NOW); |
| 12 | const_assert_eq!(libloading::os::unix::RTLD_LAZY, libc::RTLD_LAZY); |
| 13 | } |