[Runtime] Small fix for the runtime.h exposed by Emb-4000. Fixes #4442 (#4675)

This fixes issue #4442 by fixing a small struct issues.

https://github.com/xamarin/xamarin-macios/issues/4442
This commit is contained in:
Manuel de la Pena 2018-08-22 13:42:01 +02:00 коммит произвёл GitHub
Родитель 5d782041d4
Коммит 91c14f26a7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -86,7 +86,7 @@ typedef struct __attribute__((packed)) {
typedef struct __attribute__((packed)) {
const uint32_t *protocol_tokens; // an array of token references to managed interfaces that represent protocols
// __unsafe_unretained needed to prevent "error: pointer to non-const type 'const Protocol *' with no explicit ownership" in Embeddinator
const __unsafe_unretained Protocol **protocols; // the corresponding native protocols
const __unsafe_unretained Protocol * const * protocols; // the corresponding native protocols
} MTProtocolMap;
struct MTRegistrationMap;