Skip to content

Commit 0703fa4

Browse files
committed
We assume that we have fastr enumeration in the complier/runtime if we are using clang or if we found the mutation handler function in the runtime. However we can only use it if we are able to set the mutation handler (via API) or override it as a werak symbol (which we can't do on mingw).
1 parent 3ef0302 commit 0703fa4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Headers/GNUstepBase/GNUstep.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,8 @@ if ((NSUInteger)INDEX >= (NSUInteger)OVER) \
470470
GSNameFromSelector(_cmd), (NSUInteger)INDEX]
471471

472472

473-
#if defined(__clang__) \
474-
|| (GS_HAVE_FAST_ENUMERATION \
475-
&& (GS_HAVE_FAST_ENUMERATION_SETTER || !defined(__MINGW__)))
473+
#if ((defined(__clang__) || GS_HAVE_FAST_ENUMERATION) \
474+
&& (GS_HAVE_FAST_ENUMERATION_SETTER || !defined(__MINGW__)))
476475
/** <p>This function (macro) is a GNUstep extension.</p>
477476
* <p>
478477
* Macro to support fast enumeration on platforms where the compiler or

0 commit comments

Comments
 (0)