mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-02-12 20:28:11 +00:00
Fix enumeration mutation function prototype to match what clang expects (id instead of void* argument).
This commit is contained in:
parent
618003649d
commit
cf7d127f66
@ -1,9 +1,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include "objc/runtime.h"
|
||||||
|
|
||||||
// This function is exported as a weak symbol to enable GNUstep or some other
|
// This function is exported as a weak symbol to enable GNUstep or some other
|
||||||
// framework to replace it trivially
|
// framework to replace it trivially
|
||||||
void __attribute__((weak)) objc_enumerationMutation(void *obj)
|
void __attribute__((weak)) objc_enumerationMutation(id obj)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Mutation occured during enumeration.");
|
fprintf(stderr, "Mutation occured during enumeration.");
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user