From f6480be3aa78e9f67d5ef18130760ea526826353 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 8 Mar 2020 18:38:53 +0200 Subject: [PATCH] add C.environ to cheaders.v --- vlib/compiler/cheaders.v | 4 +++- vlib/v/gen/cheaders.v | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index 2a051e0f0f..2246bbf86a 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -73,6 +73,7 @@ const ( #include // tolower #include #include // sleep +extern char **environ; #endif #if defined(__CYGWIN__) && !defined(_WIN32) @@ -136,6 +137,8 @@ $c_common_macros #include #pragma comment(lib, "Dbghelp.lib") +extern wchar_t **_wenviron; + #endif #else @@ -334,4 +337,3 @@ void sys_exit (int); ' ) - diff --git a/vlib/v/gen/cheaders.v b/vlib/v/gen/cheaders.v index 6380af5f15..aee5c6b642 100644 --- a/vlib/v/gen/cheaders.v +++ b/vlib/v/gen/cheaders.v @@ -73,6 +73,7 @@ const ( #include // tolower #include #include // sleep +extern char **environ; #endif #if defined(__CYGWIN__) && !defined(_WIN32) @@ -136,6 +137,8 @@ $c_common_macros #include #pragma comment(lib, "Dbghelp.lib") +extern wchar_t **_wenviron; + #endif #else