mirror of
https://github.com/openharmony/third_party_rust_libloading.git
synced 2026-07-19 13:16:19 -04:00
Care around cfg to not show wrong values in docs
This commit is contained in:
@@ -43,7 +43,7 @@ pub const RTLD_GLOBAL: c_int = posix::RTLD_GLOBAL;
|
||||
/// any other executable object file. This mode of operation is most appropriate for e.g. plugins.
|
||||
pub const RTLD_LOCAL: c_int = posix::RTLD_LOCAL;
|
||||
|
||||
#[cfg(docsrs)]
|
||||
#[cfg(all(docsrs, not(unix)))]
|
||||
mod posix {
|
||||
use super::c_int;
|
||||
pub(super) const RTLD_LAZY: c_int = !0;
|
||||
@@ -52,7 +52,7 @@ mod posix {
|
||||
pub(super) const RTLD_LOCAL: c_int = !0;
|
||||
}
|
||||
|
||||
#[cfg(not(docsrs))]
|
||||
#[cfg(any(not(docsrs), unix))]
|
||||
mod posix {
|
||||
extern crate cfg_if;
|
||||
use self::cfg_if::cfg_if;
|
||||
|
||||
Reference in New Issue
Block a user