From 56101cea9a9afe0715ed0bc2f691b11edb790907 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 5 Jul 2017 19:50:49 -0700 Subject: [PATCH] Add `no_mangle` in a few places --- partitionfinder/src/capi.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/partitionfinder/src/capi.rs b/partitionfinder/src/capi.rs index 0ba74433..a8eef38d 100644 --- a/partitionfinder/src/capi.rs +++ b/partitionfinder/src/capi.rs @@ -115,6 +115,7 @@ pub unsafe extern fn pf_tessellator_tess_levels<'a>(tessellator: *mut Tessellato tess_levels.as_ptr() } +#[no_mangle] pub unsafe extern fn pf_tessellator_vertices<'a>(tessellator: *mut Tessellator<'a>, out_vertex_count: *mut u32) -> *const Vertex { @@ -125,6 +126,7 @@ pub unsafe extern fn pf_tessellator_vertices<'a>(tessellator: *mut Tessellator<' vertices.as_ptr() } +#[no_mangle] pub unsafe extern fn pf_tessellator_msaa_indices<'a>(tessellator: *mut Tessellator<'a>, out_msaa_index_count: *mut u32) -> *const u32 { @@ -135,6 +137,7 @@ pub unsafe extern fn pf_tessellator_msaa_indices<'a>(tessellator: *mut Tessellat msaa_indices.as_ptr() } +#[no_mangle] pub unsafe extern fn pf_tessellator_levien_indices<'a>(tessellator: *mut Tessellator<'a>, out_levien_index_count: *mut u32) -> *const u32 {