Skip to content

Commit

Permalink
Add OBJC_PUBLIC annotation to objc_alloc, objc_allocWithZone, objc_al…
Browse files Browse the repository at this point in the history
…loc_init

Fixes compiler errors on Windows
  • Loading branch information
qmfrederik committed Feb 21, 2024
1 parent 02f62ed commit 11f8a97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fast_paths.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ - (id)init;
/**
* Equivalent to [cls alloc]. If there's a fast path opt-in, then this skips the message send.
*/
OBJC_PUBLIC
id
objc_alloc(Class cls)
{
Expand All @@ -29,6 +30,7 @@ - (id)init;
/**
* Equivalent to [cls allocWithZone: null]. If there's a fast path opt-in, then this skips the message send.
*/
OBJC_PUBLIC
id
objc_allocWithZone(Class cls)
{
Expand All @@ -47,6 +49,7 @@ - (id)init;
* Equivalent to [[cls alloc] init]. If there's a fast path opt-in, then this
* skips the message send.
*/
OBJC_PUBLIC
id
objc_alloc_init(Class cls)
{
Expand Down

0 comments on commit 11f8a97

Please sign in to comment.