@@ -359,7 +359,7 @@ CFAbsoluteTime CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate, CFTimeZoneR
359
359
CFAbsoluteTime at ;
360
360
at = 86400.0 * __CFAbsoluteFromYMD (gdate .year - 2001 , gdate .month , gdate .day );
361
361
at += 3600.0 * gdate .hour + 60.0 * gdate .minute + gdate .second ;
362
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
362
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
363
363
if (NULL != tz ) {
364
364
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
365
365
}
@@ -378,7 +378,7 @@ CFGregorianDate CFAbsoluteTimeGetGregorianDate(CFAbsoluteTime at, CFTimeZoneRef
378
378
int64_t absolute , year ;
379
379
int8_t month , day ;
380
380
CFAbsoluteTime fixedat ;
381
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
381
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
382
382
if (NULL != tz ) {
383
383
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
384
384
}
@@ -406,7 +406,7 @@ CFAbsoluteTime CFAbsoluteTimeAddGregorianUnits(CFAbsoluteTime at, CFTimeZoneRef
406
406
CFAbsoluteTime candidate_at0 , candidate_at1 ;
407
407
uint8_t monthdays ;
408
408
409
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
409
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
410
410
if (NULL != tz ) {
411
411
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
412
412
}
@@ -525,7 +525,7 @@ CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits(CFAbsoluteTime at1,
525
525
SInt32 CFAbsoluteTimeGetDayOfWeek (CFAbsoluteTime at , CFTimeZoneRef tz ) {
526
526
int64_t absolute ;
527
527
CFAbsoluteTime fixedat ;
528
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
528
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
529
529
if (NULL != tz ) {
530
530
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
531
531
}
@@ -541,7 +541,7 @@ SInt32 CFAbsoluteTimeGetDayOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) {
541
541
CFAbsoluteTime fixedat ;
542
542
int64_t absolute , year ;
543
543
int8_t month , day ;
544
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
544
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
545
545
if (NULL != tz ) {
546
546
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
547
547
}
@@ -560,7 +560,7 @@ SInt32 CFAbsoluteTimeGetWeekOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) {
560
560
int64_t absolute , year ;
561
561
int8_t month , day ;
562
562
CFAbsoluteTime fixedat ;
563
- #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX
563
+ #if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI
564
564
if (NULL != tz ) {
565
565
__CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
566
566
}
0 commit comments