We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c832f18 commit d1ddaa8Copy full SHA for d1ddaa8
1 file changed
test/parsers_test.cpp
@@ -300,6 +300,10 @@ void test_config_file(const char* config_file)
300
check_value(a2[6], "m1.v3", "3");
301
}
302
303
+#if defined(__CYGWIN__)
304
+ extern "C" int putenv (char *__string);
305
+#endif
306
+
307
void test_environment()
308
{
309
options_description desc;
@@ -308,7 +312,7 @@ void test_environment()
312
("bar", new untyped_value, "")
313
;
310
314
311
-#if (defined(_WIN32) && ! defined(BOOST_BORLANDC) && ! defined(BOOST_EMBTC)) || (defined(__CYGWIN__))
315
+#if defined(_WIN32) && ! defined(BOOST_BORLANDC) && ! defined(BOOST_EMBTC)
316
_putenv("PO_TEST_FOO=1");
317
#else
318
putenv(const_cast<char*>("PO_TEST_FOO=1"));
0 commit comments