[runtime] Mark all the new Mono API we're using for coop as optional. (#100)

This fixes Xamarin.Mac apps using older system monos.
This commit is contained in:
Rolf Bjarne Kvinge 2016-05-30 15:27:02 +02:00
Родитель f3602b4e93
Коммит c9bcf1f56d
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -566,27 +566,27 @@
#region utils/mono-threads-api.h
new Export ("void*", "mono_threads_enter_gc_unsafe_region",
new Export (true, "void*", "mono_threads_enter_gc_unsafe_region",
"void **", "stackdata"
),
new Export ("void", "mono_threads_exit_gc_unsafe_region",
new Export (true, "void", "mono_threads_exit_gc_unsafe_region",
"void *", "cookie",
"void **", "stackdata"
),
new Export ("void*", "mono_threads_enter_gc_safe_region",
new Export (true, "void*", "mono_threads_enter_gc_safe_region",
"void **", "stackdata"
),
new Export ("void", "mono_threads_exit_gc_safe_region",
new Export (true, "void", "mono_threads_exit_gc_safe_region",
"void *", "cookie",
"void **", "stackdata"
),
new Export ("void", "mono_threads_assert_gc_safe_region" ),
new Export (true, "void", "mono_threads_assert_gc_safe_region" ),
new Export ("void", "mono_threads_assert_gc_unsafe_region" ),
new Export (true, "void", "mono_threads_assert_gc_unsafe_region" ),
new Export (true, "void", "mono_threads_assert_gc_starting_region" ),