We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__wasilibc_get_environ
1 parent c890a55 commit 68775d9Copy full SHA for 68775d9
CoreFoundation/Base.subproj/CFPlatform.c
@@ -22,6 +22,10 @@
22
#include <mach-o/dyld.h>
23
#endif
24
25
+#if TARGET_OS_WASI
26
+#include <wasi/libc-environ.h>
27
+#endif
28
+
29
#define _CFEmitInternalDiagnostics 0
30
31
@@ -1812,8 +1816,10 @@ CF_EXPORT char **_CFEnviron(void) {
1812
1816
return *_NSGetEnviron();
1813
1817
#elif TARGET_OS_WIN32
1814
1818
return _environ;
1819
+#elif TARGET_OS_WASI
1820
+ return __wasilibc_get_environ();
1815
1821
#else
-#if TARGET_OS_BSD || TARGET_OS_WASI
1822
+#if TARGET_OS_BSD
1823
extern char **environ;
1824
1825
return environ;
0 commit comments