#pragma once

// See compat/KIconThemes/KIconLoader for why this shim exists: nixpkgs
// (NixOS) builds each KF6 framework into its own isolated store path, which
// breaks the fully-qualified <KArchive/KZip> spelling even though
// find_package(KF6Archive) succeeds there.
#if __has_include(<KZip>)
#include <KZip>
#elif __has_include(<KArchive/kzip.h>)
#include <KArchive/kzip.h>
#elif __has_include(<kzip.h>)
#include <kzip.h>
#elif __has_include_next(<KArchive/KZip>)
#include_next <KArchive/KZip>
#else
#error "Could not find a usable KZip header"
#endif
