Ignore:
Timestamp:
Aug 13, 2013, 6:10:10 PM (6 years ago)
Author:
landonf@…
Message:

Replace unnecessary use of libdispatch; this will partially fix the build on 10.5/PPC.

Issue: 40082

Location:
trunk/dports/security/certsync
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/certsync/Portfile

    r109272 r109343  
    33PortSystem 1.0
    44name                    certsync
    5 version                 1.0.3
     5version                 1.0.4
    66categories              security
    77conflicts               curl-ca-bundle
  • trunk/dports/security/certsync/files/certsync.m

    r106086 r109343  
    5656 */
    5757CFTypeRef PLCFAutorelease (CFTypeRef cfObj) {
    58     /* ARC forbids the use of @selector(autorelease), so we have to get creative */
    59     static SEL autorelease;
    60     static dispatch_once_t pred;
    61     dispatch_once(&pred, ^{
    62         autorelease = sel_getUid("autorelease");
    63     });
    64    
    65     /* Cast and hand-dispatch */
    66     return ((CFTypeRef (*)(CFTypeRef, SEL)) objc_msgSend)(cfObj, autorelease);
     58    return [(id)cfObj autorelease];
    6759}
    6860
Note: See TracChangeset for help on using the changeset viewer.