MSVC: Provide implementations of [un]setenv()
Reference: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv-s-wputenv-smaster
parent
abb2f9d978
commit
f1186acfd4
|
@ -95,3 +95,8 @@ test_disable_stdin_echo(void);
|
|||
|
||||
void
|
||||
test_enable_stdin_echo(void);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define setenv(varname, value, overwrite) _putenv_s((varname), (value))
|
||||
#define unsetenv(varname) _putenv_s(varname, "")
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue