@@ -359,7 +359,7 @@ CFAbsoluteTime CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate, CFTimeZoneR
359359 CFAbsoluteTime at ;
360360 at = 86400.0 * __CFAbsoluteFromYMD (gdate .year - 2001 , gdate .month , gdate .day );
361361 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
363363 if (NULL != tz ) {
364364 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
365365 }
@@ -378,7 +378,7 @@ CFGregorianDate CFAbsoluteTimeGetGregorianDate(CFAbsoluteTime at, CFTimeZoneRef
378378 int64_t absolute , year ;
379379 int8_t month , day ;
380380 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
382382 if (NULL != tz ) {
383383 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
384384 }
@@ -406,7 +406,7 @@ CFAbsoluteTime CFAbsoluteTimeAddGregorianUnits(CFAbsoluteTime at, CFTimeZoneRef
406406 CFAbsoluteTime candidate_at0 , candidate_at1 ;
407407 uint8_t monthdays ;
408408
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
410410 if (NULL != tz ) {
411411 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
412412 }
@@ -525,7 +525,7 @@ CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits(CFAbsoluteTime at1,
525525SInt32 CFAbsoluteTimeGetDayOfWeek (CFAbsoluteTime at , CFTimeZoneRef tz ) {
526526 int64_t absolute ;
527527 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
529529 if (NULL != tz ) {
530530 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
531531 }
@@ -541,7 +541,7 @@ SInt32 CFAbsoluteTimeGetDayOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) {
541541 CFAbsoluteTime fixedat ;
542542 int64_t absolute , year ;
543543 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
545545 if (NULL != tz ) {
546546 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
547547 }
@@ -560,7 +560,7 @@ SInt32 CFAbsoluteTimeGetWeekOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) {
560560 int64_t absolute , year ;
561561 int8_t month , day ;
562562 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
564564 if (NULL != tz ) {
565565 __CFGenericValidateType (tz , CFTimeZoneGetTypeID ());
566566 }
0 commit comments