Skip to content

Commit a7edcbd

Browse files
authored
Merge pull request swiftlang#2633 from 3405691582/CFLocaleKeys_ExposeAliasesForBSD
[CF] Locale symbol aliases required for BSD.
2 parents 13f29dc + dda831a commit a7edcbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/Locale.subproj/CFLocaleKeys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ CONST_STRING_DECL(kCFCalendarIdentifierCoptic, "coptic");
132132
CONST_STRING_DECL(kCFCalendarIdentifierEthiopicAmeteMihret, "ethiopic");
133133
CONST_STRING_DECL(kCFCalendarIdentifierEthiopicAmeteAlem, "ethiopic-amete-alem");
134134

135-
// Aliases for Linux
136-
#if TARGET_OS_LINUX || TARGET_OS_WIN32
135+
// Aliases for other platforms.
136+
#if TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_WIN32
137137

138138
CF_EXPORT CFStringRef const kCFBuddhistCalendar __attribute__((alias ("kCFCalendarIdentifierBuddhist")));
139139
CF_EXPORT CFStringRef const kCFChineseCalendar __attribute__((alias ("kCFCalendarIdentifierChinese")));

0 commit comments

Comments
 (0)