@@ -194,10 +194,12 @@ */ - (void)makeImmutable; @end @interface OFMutableData (MutableRetrieving) +/* GCC does not like overriding properties with a different type. */ +#if defined(__clang__) || defined(DOXYGEN) /*! * All items of the OFMutableData as a C array. * * @warning The pointer is only valid until the OFMutableData is changed! * @@ -221,10 +223,15 @@ * Modifying the returned item directly is allowed and will change the contents * of the data array. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) void *lastItem OF_RETURNS_INNER_POINTER; +#else +- (void *)items; +- (nullable void *)firstItem; +- (nullable void *)lastItem; +#endif /*! * @brief Returns a specific item of the OFMutableData. * * Modifying the returned item directly is allowed and will change the contents