mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-19 04:22:15 +00:00
Use _putenv, not setenv, on Win32.
[SVN r22853]
This commit is contained in:
@@ -179,7 +179,11 @@ void test_environment()
|
||||
("bar", new untyped_value, "")
|
||||
;
|
||||
|
||||
#ifdef _WIN32
|
||||
_putenv("PO_TEST_FOO=1");
|
||||
#else
|
||||
setenv("PO_TEST_FOO", "1", 1);
|
||||
#endif
|
||||
parsed_options p = parse_environment(desc, "PO_TEST_");
|
||||
|
||||
BOOST_REQUIRE(p.options.size() == 1);
|
||||
|
||||
Reference in New Issue
Block a user