Skip to content

Commit 99c5c0c

Browse files
[wasm] Stop requiring TZDIR and TZDEFAULT on WASI (#1248)
Those constants are not used on WASI in Swift side, so there's no need to require them in the C headers.
1 parent 914b9f7 commit 99c5c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_FoundationCShims/include/_CStdlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
#ifndef TZDEFAULT
157157
#define TZDEFAULT "/etc/localtime"
158158
#endif /* !defined TZDEFAULT */
159-
#elif TARGET_OS_WINDOWS
159+
#elif TARGET_OS_WINDOWS || TARGET_OS_WASI
160160
/* not required */
161161
#else
162162
#error "possibly define TZDIR and TZDEFAULT for this platform"

0 commit comments

Comments
 (0)