Use _putenv, not setenv, on Win32.

[SVN r22853]
This commit is contained in:
Vladimir Prus
2004-05-18 06:26:08 +00:00
parent 95927c2a01
commit 3676504589

View File

@@ -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);