mod atexit;
#[cfg(feature = "std")]
mod lstat;
#[allow(dead_code)]
pub struct PatchesRef(*mut core::ffi::c_void, *mut core::ffi::c_void);
pub fn link_patches() -> PatchesRef {
#[cfg(esp_idf_version_major = "4")]
notify_about_deprecation();
#[cfg(feature = "std")]
let lstat = lstat::link_patches();
#[cfg(not(feature = "std"))]
let lstat = core::ptr::null_mut();
let atexit = atexit::link_patches();
PatchesRef(lstat, atexit)
}
#[cfg(esp_idf_version_major = "4")]
#[deprecated(
since = "0.35.0",
note = "ESP-IDF version 4 is now considered deprecated.\nPlease upgrade your project to ESP-IDF 5 or later.\nFuture releases will remove parts that are version 4 related"
)]
const fn notify_about_deprecation() {}