Skip to content

Commit cf7d127

Browse files
author
theraven
committed
Fix enumeration mutation function prototype to match what clang expects (id instead of void* argument).
1 parent 6180036 commit cf7d127

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mutation.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#include <stdio.h>
22
#include <stdlib.h>
3+
#include "objc/runtime.h"
34

45
// This function is exported as a weak symbol to enable GNUstep or some other
56
// framework to replace it trivially
6-
void __attribute__((weak)) objc_enumerationMutation(void *obj)
7+
void __attribute__((weak)) objc_enumerationMutation(id obj)
78
{
89
fprintf(stderr, "Mutation occured during enumeration.");
910
abort();

0 commit comments

Comments
 (0)