Removes dispatch_release when iOS >= 6 || OSX >= 1080 #260

Closed
wants to merge 1 commit into
from

3 participants

@rodowi

dispatch_release is forbidden under ARC in new iOS and OSX versions

Instead of commenting out dispatch_release we could define an empty macro to support other iOS versions.

@see ccgus/fmdb@aef763e via @JHumphreyJr in https://github.com/Nyx0uf/NYXImagesKit/issues/16

@rodowi

Should we check for ARC also?

#if __has_feature(objc_arc)
@blackgold9
Magical Panda Software member

Merged.

@blackgold9 blackgold9 closed this Sep 27, 2012
@AliSoftware

You should use the build-in OS_OBJECT_USE_OBJC for that instead, which is provided by Apple just for that actually.

#if OS_OBJECT_USE_OBJC
#define MRDispatchQueueRelease(x)
#else
#define MRDispatchQueueRelease(x) dispatch_release(x);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment