Skip to content

Commit ea46f94

Browse files
committed
[CF] Define DECLARE_STATIC_CLASS_REF macro.
If !DEPLOYMENT_RUNTIME_SWIFT, just defining STATIC_CLASS_REF is insufficient, since CFBase refers to DECLARE_STATIC_CLASS_REF.
1 parent 86eec61 commit ea46f94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreFoundation/Base.subproj/ForFoundationOnly.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ CF_EXPORT void *_CFCreateArrayStorage(size_t numPointers, Boolean zeroed, size_t
691691

692692
// We don't need static class refs if CF is used standalone, as there's no Swift or ObjC runtime to interoperate with.
693693
#define STATIC_CLASS_REF(...) NULL
694+
#define DECLARE_STATIC_CLASS_REF(...)
694695

695696
#endif
696697

0 commit comments

Comments
 (0)