File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 82
82
#include " dtptngen_impl.h" // for datePatternHasNumericCore()
83
83
// rdar://106782612 compatibility: format with plain spaces for specific app(s)
84
84
#include < stdlib.h> // for getprogname()
85
+ #if U_PLATFORM_IS_DARWIN_BASED
85
86
#include < os/log.h>
87
+ #endif // U_PLATFORM_IS_DARWIN_BASED
86
88
#endif // APPLE_ICU_CHANGES
87
89
88
90
#if APPLE_ICU_CHANGES
@@ -1325,7 +1327,7 @@ SimpleDateFormat::initialize(const Locale& locale,
1325
1327
{
1326
1328
if (U_FAILURE (status)) return ;
1327
1329
1328
- #if APPLE_ICU_CHANGES
1330
+ #if APPLE_ICU_CHANGES && U_PLATFORM_IS_DARWIN_BASED
1329
1331
// rdar://106782612&108035771 compatibility: format with plain spaces for specific app(s).
1330
1332
// This needs to be before the call to parsePattern(), which will do the space adjust.
1331
1333
fUsePlainSpaces = false ;
@@ -1339,7 +1341,7 @@ SimpleDateFormat::initialize(const Locale& locale,
1339
1341
fUsePlainSpaces = true ;
1340
1342
os_log (OS_LOG_DEFAULT, " ICU using compatibility space for date formatting" );
1341
1343
}
1342
- #endif // APPLE_ICU_CHANGES
1344
+ #endif // APPLE_ICU_CHANGES && U_PLATFORM_IS_DARWIN_BASED
1343
1345
1344
1346
parsePattern (); // Need this before initNumberFormatters(), to set fHasHanYearChar
1345
1347
You can’t perform that action at this time.
0 commit comments