about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index 754a1f2d189..ddf490f6dba 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -224,7 +224,7 @@ void upcall_s_clone_type_desc(s_clone_type_desc_args *args)
  * Called to deep-clone type descriptors so they can be attached to a sendable
  * function.  Eventually this should perhaps move to a centralized hashtable.
  */
-type_desc *
+extern "C" CDECL type_desc *
 upcall_clone_type_desc(type_desc *td) {
     s_clone_type_desc_args args = { td, 0 };
     SWITCH_STACK(&args, upcall_s_clone_type_desc);