Skip to content

Commit 2480df6

Browse files
committed
SR-1464: Update ifdef to use TARGET_OS_*
1 parent 6450221 commit 2480df6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/String.subproj/CFString.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6013,7 +6013,7 @@ enum {
60136013
CFFormatDummyPointerType = 42 /* special case for %n */
60146014
};
60156015

6016-
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_WINDOWS || DEPLOYMENT_TARGET_LINUX
6016+
#if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
60176017
/* Only come in here if spec->type is CFFormatLongType or CFFormatDoubleType. Pass in 0 for width or precision if not specified. Returns false if couldn't do the format (with the assumption the caller falls back to unlocalized).
60186018
*/
60196019
static Boolean __CFStringFormatLocalizedNumber(CFMutableStringRef output, CFLocaleRef locale, const CFPrintValue *values, const CFFormatSpec *spec, SInt32 width, SInt32 precision, Boolean hasPrecision) {
@@ -7109,7 +7109,7 @@ static Boolean __CFStringAppendFormatCore(CFMutableStringRef outputString, CFStr
71097109
switch (specs[curSpec].type) {
71107110
case CFFormatLongType:
71117111
case CFFormatDoubleType:
7112-
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_WINDOWS || DEPLOYMENT_TARGET_LINUX
7112+
#if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
71137113
if (localizedFormatting && (specs[curSpec].flags & kCFStringFormatLocalizable)) { // We have a locale, so we do localized formatting
71147114
if (__CFStringFormatLocalizedNumber(outputString, (CFLocaleRef)formatOptions, values, &specs[curSpec], width, precision, hasPrecision)) break;
71157115
}

0 commit comments

Comments
 (0)