Skip to content

Commit

Permalink
restore weird msvc struct, add new field
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Sep 11, 2024
1 parent 86cebba commit fb5999e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/include/delta_kernel_ffi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,21 @@ using CScanCallback = void(*)(NullableCvoid engine_context,
const DvInfo *dv_info,
const CStringMap *partition_map);

// This trickery is from https://github.com/mozilla/cbindgen/issues/402#issuecomment-578680163
struct im_an_unused_struct_that_tricks_msvc_into_compilation {
ExternResult<KernelBoolSlice> field;
ExternResult<bool> field2;
ExternResult<EngineBuilder*> field3;
ExternResult<Handle<SharedExternEngine>> field4;
ExternResult<Handle<SharedSnapshot>> field5;
ExternResult<uintptr_t> field6;
ExternResult<ArrowFFIData*> field7;
ExternResult<Handle<SharedScanDataIterator>> field8;
ExternResult<Handle<SharedScan>> field9;
ExternResult<Handle<ExclusiveFileReadResultIterator>> field10;
ExternResult<KernelRowIndexArray> field11;
};

extern "C" {

/// # Safety
Expand Down

0 comments on commit fb5999e

Please sign in to comment.