gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

Export objc_enumerationMutation() function #202

Closed triplef closed 3 years ago

triplef commented 3 years ago

Fixes linker errors on Windows when using for-in loops.

davidchisnall commented 3 years ago

I don't believe that weak symbols are not preemptable (or, in fact, supported) on Windows, so for Windows we probably need to:

triplef commented 3 years ago

Good to know. This is in fact how it’s done on Apple platforms via objc_setEnumerationMutationHandler().