Skip to content

Commit d1ddaa8

Browse files
committed
Fix Cygwin failures
1 parent c832f18 commit d1ddaa8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/parsers_test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ void test_config_file(const char* config_file)
300300
check_value(a2[6], "m1.v3", "3");
301301
}
302302

303+
#if defined(__CYGWIN__)
304+
extern "C" int putenv (char *__string);
305+
#endif
306+
303307
void test_environment()
304308
{
305309
options_description desc;
@@ -308,7 +312,7 @@ void test_environment()
308312
("bar", new untyped_value, "")
309313
;
310314

311-
#if (defined(_WIN32) && ! defined(BOOST_BORLANDC) && ! defined(BOOST_EMBTC)) || (defined(__CYGWIN__))
315+
#if defined(_WIN32) && ! defined(BOOST_BORLANDC) && ! defined(BOOST_EMBTC)
312316
_putenv("PO_TEST_FOO=1");
313317
#else
314318
putenv(const_cast<char*>("PO_TEST_FOO=1"));

0 commit comments

Comments
 (0)