stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r539648 - /incubator/stdcxx/trunk/tests/src/environ.cpp
Date Sat, 19 May 2007 00:14:59 GMT
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  <lemings@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



Mime
View raw message