|
24 | 24 | #include "CFRuntime_Internal.h"
|
25 | 25 | #include <CoreFoundation/CFBurstTrie.h>
|
26 | 26 | #include <CoreFoundation/CFString.h>
|
27 |
| -#if !TARGET_OS_WASI |
28 | 27 | #include <CoreFoundation/CFStream.h>
|
29 |
| -#endif |
30 | 28 | #include <CoreFoundation/CFCalendar.h>
|
31 | 29 | #include "CFLocaleInternal.h"
|
32 | 30 | #include <limits.h>
|
@@ -2325,7 +2323,7 @@ static CFStringEncoding encodingForXMLData(CFDataRef data, CFErrorRef *error, CF
|
2325 | 2323 | if (len == 5 && (*base == 'u' || *base == 'U') && (base[1] == 't' || base[1] == 'T') && (base[2] == 'f' || base[2] == 'F') && (base[3] == '-') && (base[4] == '8'))
|
2326 | 2324 | return kCFStringEncodingUTF8;
|
2327 | 2325 | encodingName = CFStringCreateWithBytes(kCFAllocatorSystemDefault, base, len, kCFStringEncodingISOLatin1, false);
|
2328 |
| -#if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX |
| 2326 | +#if TARGET_OS_MAC || TARGET_OS_WIN32 || TARGET_OS_LINUX || TARGET_OS_WASI |
2329 | 2327 | CFStringEncoding enc = CFStringConvertIANACharSetNameToEncoding(encodingName);
|
2330 | 2328 | if (enc != kCFStringEncodingInvalidId) {
|
2331 | 2329 | if (encodingName) {CFRelease(encodingName); }
|
@@ -2898,7 +2896,6 @@ CFPropertyListRef CFPropertyListCreateFromXMLData(CFAllocatorRef allocator, CFDa
|
2898 | 2896 | return result;
|
2899 | 2897 | }
|
2900 | 2898 |
|
2901 |
| -#if !TARGET_OS_WASI |
2902 | 2899 | CFDataRef CFPropertyListCreateData(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) {
|
2903 | 2900 | CFAssert1(format != kCFPropertyListOpenStepFormat, __kCFLogAssertion, "%s(): kCFPropertyListOpenStepFormat not supported for writing", __PRETTY_FUNCTION__);
|
2904 | 2901 | CFAssert2(format == kCFPropertyListXMLFormat_v1_0 || format == kCFPropertyListBinaryFormat_v1_0, __kCFLogAssertion, "%s(): Unrecognized option %ld", __PRETTY_FUNCTION__, format);
|
@@ -3152,7 +3149,6 @@ bool _CFPropertyListValidateData(CFDataRef data, CFTypeID *outTopLevelTypeID) {
|
3152 | 3149 | return result;
|
3153 | 3150 | }
|
3154 | 3151 |
|
3155 |
| -#endif |
3156 | 3152 |
|
3157 | 3153 | #pragma mark -
|
3158 | 3154 | #pragma mark Property List Copies
|
|
0 commit comments