Export objc_enumerationMutation.

When using clang a call to this is inserted by the compiler, so we need to always export it.
This commit is contained in:
Frederik Seiffert 2021-03-26 10:55:44 +01:00 committed by Frederik Seiffert
parent 7800e27879
commit c52f1e3223

View file

@ -1,14 +1,15 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
GS_EXPORT void objc_enumerationMutation(id);
#pragma GCC diagnostic pop
#ifdef __clang__
#define FOR_IN(type, var, collection) \
for (type var in collection)\
{
#define END_FOR_IN(collection) }
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
void objc_enumerationMutation(id);
#pragma GCC diagnostic pop
#define FOR_IN(type, var, c) \
do\
{\