#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_EUVPAK_OPEN_FAILED: &str = "euvpak: failed to open archive";
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_INVALID_HANDLE: &str = "euvpak: invalid OS file handle";
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_MMAP_FAILED: &str = "euvpak: OS virtual memory map failed";
#[cfg(any(unix, windows))]
pub(crate) const ERR_EUVPAK_TOO_LARGE: &str = "euvpak: archive exceeds addressable virtual memory";
#[cfg(unix)]
pub(crate) const POSIX_PROT_READ: i32 = 0x1;
#[cfg(unix)]
pub(crate) const POSIX_MAP_PRIVATE: i32 = 0x2;
#[cfg(unix)]
pub(crate) const POSIX_MADV_RANDOM: i32 = 1;
#[cfg(unix)]
pub(crate) const POSIX_MADV_WILLNEED: i32 = 3;
#[cfg(unix)]
pub(crate) const POSIX_ADVISE_ALIGN_BYTES: usize = 16_384;
#[cfg(windows)]
pub(crate) const WIN32_PAGE_READONLY: u32 = 0x02;
#[cfg(windows)]
pub(crate) const WIN32_FILE_MAP_READ: u32 = 0x0004;
#[cfg(target_arch = "wasm32")]
pub(crate) const ERR_EUVPAK_WASM_UNSUPPORTED: &str =
"euvpak: filesystem mmap unavailable on wasm32; use from_bytes";