Add OBJC_PUBLIC annotation to objc_alloc, objc_allocWithZone, objc_alloc_init

Fixes compiler errors on Windows
main
Frederik Carlier 2 years ago committed by Frederik Carlier
parent 08bad37c32
commit 015e7ce310

@ -12,6 +12,7 @@ typedef struct _NSZone NSZone;
/** /**
* Equivalent to [cls alloc]. If there's a fast path opt-in, then this skips the message send. * Equivalent to [cls alloc]. If there's a fast path opt-in, then this skips the message send.
*/ */
OBJC_PUBLIC
id id
objc_alloc(Class cls) objc_alloc(Class cls)
{ {
@ -29,6 +30,7 @@ objc_alloc(Class cls)
/** /**
* Equivalent to [cls allocWithZone: null]. If there's a fast path opt-in, then this skips the message send. * Equivalent to [cls allocWithZone: null]. If there's a fast path opt-in, then this skips the message send.
*/ */
OBJC_PUBLIC
id id
objc_allocWithZone(Class cls) objc_allocWithZone(Class cls)
{ {
@ -47,6 +49,7 @@ objc_allocWithZone(Class cls)
* Equivalent to [[cls alloc] init]. If there's a fast path opt-in, then this * Equivalent to [[cls alloc] init]. If there's a fast path opt-in, then this
* skips the message send. * skips the message send.
*/ */
OBJC_PUBLIC
id id
objc_alloc_init(Class cls) objc_alloc_init(Class cls)
{ {

Loading…
Cancel
Save