Fix enumeration mutation function prototype to match what clang expects (id instead of void* argument).

This commit is contained in:
theraven 2011-02-12 21:05:06 +00:00
parent 618003649d
commit cf7d127f66

View File

@ -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();