File tree 1 file changed +4
-2
lines changed
Sources/_FoundationCShims 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,17 @@ int _stringshims_strncasecmp_l(const char * _Nullable s1,
38
38
return _strnicmp_l (s1 , s2 , n , loc ? loc : * cloc );
39
39
#else
40
40
if (loc != NULL ) {
41
- #if defined(TARGET_OS_EXCLAVEKIT ) && TARGET_OS_EXCLAVEKIT
41
+ #if (defined(TARGET_OS_EXCLAVEKIT ) && TARGET_OS_EXCLAVEKIT ) || \
42
+ (defined(TARGET_OS_ANDROID ) && TARGET_OS_ANDROID && __ANDROID_API__ < 23 )
42
43
abort ();
43
44
#else
44
45
return strncasecmp_l (s1 , s2 , n , loc );
45
46
#endif
46
47
}
47
48
// On Darwin, NULL loc means unlocalized compare.
48
49
// Uses the standard C locale for Linux in this case
49
- #if defined(TARGET_OS_EXCLAVEKIT ) && TARGET_OS_EXCLAVEKIT
50
+ #if (defined(TARGET_OS_EXCLAVEKIT ) && TARGET_OS_EXCLAVEKIT ) || \
51
+ (defined(TARGET_OS_ANDROID ) && TARGET_OS_ANDROID && __ANDROID_API__ < 23 )
50
52
return strncasecmp (s1 , s2 , n );
51
53
#elif TARGET_OS_MAC
52
54
return strncasecmp_l (s1 , s2 , n , NULL );
You can’t perform that action at this time.
0 commit comments