You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/05/19 02:14:59 UTC
svn commit: r539648 - /incubator/stdcxx/trunk/tests/src/environ.cpp
Author: sebor
Date: Fri May 18 17:14:59 2007
New Revision: 539648
URL: http://svn.apache.org/viewvc?view=rev&rev=539648
Log:
2007-05-18 Eric Lemings <le...@roguewave.com>
STDCXX-358
* environ.cpp (rw_putenv): Handled unsetenv() on Darwin the same
as on FreeBSD: the function is declared to return void on both.
Modified:
incubator/stdcxx/trunk/tests/src/environ.cpp
Modified: incubator/stdcxx/trunk/tests/src/environ.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/environ.cpp?view=diff&rev=539648&r1=539647&r2=539648
==============================================================================
--- incubator/stdcxx/trunk/tests/src/environ.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/environ.cpp Fri May 18 17:14:59 2007
@@ -134,14 +134,14 @@
// try to remove variable from the environment
#ifndef _RWSTD_NO_UNSETENV
-# ifdef _RWSTD_OS_FREEBSD
- // FreeBSD declares void unsetenv(const char*)
+# if defined (_RWSTD_OS_FREEBSD) || defined (_RWSTD_OS_DARWIN)
+ // FreeBSD (and Darwin) declares void unsetenv(const char*)
// http://www.freebsd.org/cgi/man.cgi?query=unsetenv&sektion=3
unsetenv (envvar);
ret = 0;
-# else // !FreeBSD
+# else // !FreeBSD ...
ret = unsetenv (envvar);
-# endif // FreeBSD
+# endif // FreeBSD ...
#else // ifdef _RWSTD_NO_UNSETENV
ret = putenv (envvar);
#endif // _RWSTD_NO_UNSETENV