#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/KArchiveDirectory> spelling even
// though find_package(KF6Archive) succeeds there.
#if __has_include(<KArchiveDirectory>)
#include <KArchiveDirectory>
#elif __has_include(<KArchive/karchivedirectory.h>)
#include <KArchive/karchivedirectory.h>
#elif __has_include(<karchivedirectory.h>)
#include <karchivedirectory.h>
#elif __has_include_next(<KArchive/KArchiveDirectory>)
#include_next <KArchive/KArchiveDirectory>
#else
#error "Could not find a usable KArchiveDirectory header"
#endif
