diff --git a/Sources/SWBCSupport/IndexStore.h b/Sources/SWBCSupport/IndexStore.h index 7d4b77b8..c1546932 100644 --- a/Sources/SWBCSupport/IndexStore.h +++ b/Sources/SWBCSupport/IndexStore.h @@ -181,14 +181,10 @@ typedef struct { indexstore_string_ref_t (*unit_dependency_get_name)(indexstore_unit_dependency_t); - bool - (*unit_reader_dependencies_apply)(indexstore_unit_reader_t, - bool(^applier)(indexstore_unit_dependency_t)); - bool (*unit_reader_dependencies_apply_f)(indexstore_unit_reader_t, void *context, bool(*applier)(void *context, indexstore_unit_dependency_t)); -} indexstore_functions_t; +} swiftbuild_indexstore_functions_t; #endif diff --git a/Sources/SWBUtil/IndexStore.swift b/Sources/SWBUtil/IndexStore.swift index 46cbd8bc..8b4515fc 100644 --- a/Sources/SWBUtil/IndexStore.swift +++ b/Sources/SWBUtil/IndexStore.swift @@ -334,7 +334,7 @@ private final class IndexStoreAPIImpl { private let dylib: LibraryHandle /// The index store API functions. - fileprivate let fn: indexstore_functions_t + fileprivate let fn: swiftbuild_indexstore_functions_t fileprivate func call(_ fn: (inout indexstore_error_t?) -> T) throws -> T { var error: indexstore_error_t? = nil @@ -354,7 +354,7 @@ private final class IndexStoreAPIImpl { self.path = path self.dylib = try Library.open(path) - var api = indexstore_functions_t() + var api = swiftbuild_indexstore_functions_t() api.store_create = Library.lookup(dylib, "indexstore_store_create") api.store_get_unit_name_from_output_path = Library.lookup(dylib, "indexstore_store_get_unit_name_from_output_path") api.unit_reader_create = Library.lookup(dylib, "indexstore_unit_reader_create")