depends = darwin posix
language = Objective-C
package = platform.objc
headers = objc/List.h objc/NSObjCRuntime.h objc/NSObject.h objc/Object.h objc/Protocol.h \
    objc/hashtable.h objc/hashtable2.h objc/message.h objc/objc-api.h \
    objc/objc-class.h objc/objc-exception.h objc/objc-load.h objc/objc-runtime.h \
    objc/objc-sync.h objc/objc.h objc/runtime.h

headerFilter = objc/**
compilerOpts = -D_XOPEN_SOURCE
excludedFunctions = KERNEL_AUDIT_TOKEN KERNEL_SECURITY_TOKEN

linkerOpts = -lobjc
---
// objc-auto.h is excluded so far due to interop issues.

#include <objc/runtime.h>

OBJC_EXPORT const char * _Nonnull
sel_getName(SEL _Nonnull sel)
    OBJC_AVAILABLE(10.0, 2.0, 9.0, 1.0, 2.0);

OBJC_EXPORT SEL _Nonnull
sel_registerName(const char * _Nonnull str)
    OBJC_AVAILABLE(10.0, 2.0, 9.0, 1.0, 2.0);
