Skip to content

Commit c5b5574

Browse files
committed
Only alias the symbol for non macOS targets
- Xcode uses CoreFoundation/Base.subproj/SymbolAliases to set the symbol.
1 parent a612542 commit c5b5574

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CoreFoundation/Base.subproj/CFInternal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,12 @@ CF_EXPORT void * __CFConstantStringClassReferencePtr;
349349

350350
#if DEPLOYMENT_RUNTIME_SWIFT
351351

352+
#if TARGET_OS_MAC
353+
CF_EXPORT void *__CFConstantStringClassReference[];
354+
#else
352355
CF_EXPORT void *__CFConstantStringClassReference[] asm("_T010Foundation19_NSCFConstantStringCN");
356+
#endif
357+
353358

354359
#if __CF_BIG_ENDIAN__
355360
#define CF_CONST_STRING_INFO {0x00, 0x00, 0x07, 0xc8}

0 commit comments

Comments
 (0)