From 96d859ba4c325c2dd1a58b007538d791915c9706 Mon Sep 17 00:00:00 2001 From: lluuaapp <266615+lluuaapp@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:29:21 +0200 Subject: [PATCH] Fixed warning about redefinition of __autoreleasing --- MACollectionUtilities.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MACollectionUtilities.h b/MACollectionUtilities.h index d233011..eeaa8fc 100644 --- a/MACollectionUtilities.h +++ b/MACollectionUtilities.h @@ -15,8 +15,12 @@ // no ARC ? -> declare the ARC attributes we use to be a no-op, so the compiler won't whine #if ! __has_feature( objc_arc ) -#define __autoreleasing -#define __bridge + #ifndef __autoreleasing + #define __autoreleasing + #endif + #ifndef __bridge + #define __bridge + #endif #endif