@@ -621,7 +621,7 @@ nano_time(rust_task *task, uint64_t *ns) {
621
621
/* *
622
622
* Preallocates the exact number of bytes in the given interior vector.
623
623
*/
624
- extern " C" void
624
+ extern " C" CDECL void
625
625
ivec_reserve (rust_task *task, type_desc *ty, rust_ivec *v, size_t n_elems)
626
626
{
627
627
size_t new_alloc = n_elems * ty->size ;
@@ -652,7 +652,7 @@ ivec_reserve(rust_task *task, type_desc *ty, rust_ivec *v, size_t n_elems)
652
652
* Returns true if the given vector is on the heap and false if it's on the
653
653
* stack.
654
654
*/
655
- extern " C" bool
655
+ extern " C" CDECL bool
656
656
ivec_on_heap (rust_task *task, type_desc *ty, rust_ivec *v)
657
657
{
658
658
return !v->fill && v->payload .ptr ;
@@ -661,7 +661,7 @@ ivec_on_heap(rust_task *task, type_desc *ty, rust_ivec *v)
661
661
/* *
662
662
* Returns an unsafe pointer to the data part of an interior vector.
663
663
*/
664
- extern " C" void *
664
+ extern " C" CDECL void *
665
665
ivec_to_ptr (rust_task *task, type_desc *ty, rust_ivec *v)
666
666
{
667
667
return v->fill ? v->payload .data : v->payload .ptr ->data ;
@@ -681,7 +681,7 @@ get_ivec_size(rust_ivec *v)
681
681
* Copies elements in an unsafe buffer to the given interior vector. The
682
682
* vector must have size zero.
683
683
*/
684
- extern " C" void
684
+ extern " C" CDECL void
685
685
ivec_copy_from_buf (rust_task *task, type_desc *ty, rust_ivec *v, void *ptr,
686
686
size_t count)
687
687
{
@@ -706,12 +706,12 @@ ivec_copy_from_buf(rust_task *task, type_desc *ty, rust_ivec *v, void *ptr,
706
706
v->payload .ptr ->fill = new_size;
707
707
}
708
708
709
- extern " C" void
709
+ extern " C" CDECL void
710
710
pin_task (rust_task *task) {
711
711
task->pin ();
712
712
}
713
713
714
- extern " C" void
714
+ extern " C" CDECL void
715
715
unpin_task (rust_task *task) {
716
716
task->unpin ();
717
717
}
0 commit comments