mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-19 04:22:15 +00:00
Use 'putenv' instead of less portable 'setenv'.
[SVN r22916]
This commit is contained in:
@@ -182,7 +182,7 @@ void test_environment()
|
||||
#ifdef _WIN32
|
||||
_putenv("PO_TEST_FOO=1");
|
||||
#else
|
||||
setenv("PO_TEST_FOO", "1", 1);
|
||||
putenv("PO_TEST_FOO=1");
|
||||
#endif
|
||||
parsed_options p = parse_environment(desc, "PO_TEST_");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user