Skip to content

Commit 590b830

Browse files
committed
Locale: correct some key declarations
These are not meant to be internal, but mixing the static here would prevent the key from being defined on COFF targets which use dllexport semantics which require that the symbol have external visibility.
1 parent 2a69ab0 commit 590b830

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CoreFoundation/Locale.subproj/CFDateFormatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef CF_ENUM(CFIndex, CFDateFormatterAmbiguousYearHandling) {
4141

4242
extern UCalendar *__CFCalendarCreateUCalendar(CFStringRef calendarID, CFStringRef localeID, CFTimeZoneRef tz);
4343

44-
static CONST_STRING_DECL(kCFDateFormatterFormattingContextKey, "kCFDateFormatterFormattingContextKey");
44+
PE_CONST_STRING_DECL(kCFDateFormatterFormattingContextKey, "kCFDateFormatterFormattingContextKey");
4545

4646
CF_EXPORT const CFStringRef kCFDateFormatterCalendarIdentifierKey;
4747

CoreFoundation/Locale.subproj/CFNumberFormatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static void __CFNumberFormatterCustomize(CFNumberFormatterRef formatter);
2727
static CFStringRef __CFNumberFormatterCreateCompressedString(CFStringRef inString, Boolean isFormat, CFRange *rangep);
2828
static UErrorCode __CFNumberFormatterApplyPattern(CFNumberFormatterRef formatter, CFStringRef pattern);
29-
static CONST_STRING_DECL(kCFNumberFormatterFormattingContextKey, "kCFNumberFormatterFormattingContextKey");
29+
CONST_STRING_DECL(kCFNumberFormatterFormattingContextKey, "kCFNumberFormatterFormattingContextKey");
3030

3131
#define BUFFER_SIZE 768
3232

0 commit comments

Comments
 (0)