// build.rs — Platform detection for lz4-programs Rust port.
// Migrated from platform.h (lz4-1.10.0/programs).
//
// Emits `cargo:rustc-cfg=has_sparse_files` on Unix targets, corresponding to
// platform.h's SET_SPARSE_FILE_MODE (which is a no-op on POSIX but an
// IOCTL on Windows). On Unix, sparse files are supported natively by the OS;
// on Windows, explicit DeviceIoControl(FSCTL_SET_SPARSE) is needed instead.