We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8dd9b commit 0f306faCopy full SHA for 0f306fa
CoreFoundation/Base.subproj/CFInternal.h
@@ -334,6 +334,16 @@ CF_PRIVATE Boolean __CFProcessIsRestricted();
334
#define STACK_BUFFER_DECL(T, N, C) T N[C]
335
#endif
336
337
+#ifdef __ANDROID__
338
+// Avoids crashes on Android
339
+// https://bugs.swift.org/browse/SR-2587
340
+// https://bugs.swift.org/browse/SR-2588
341
+// Seemed to be a linker/relocation? problem.
342
+// CFStrings using CONST_STRING_DECL() were not working
343
+// Applies reference to _NSCFConstantString's isa here
344
+// rather than using a linker option to create an alias.
345
+#define __CFConstantStringClassReference _T010Foundation19_NSCFConstantStringCN
346
+#endif
347
348
CF_EXPORT void * __CFConstantStringClassReferencePtr;
349
0 commit comments