stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r670621 - /stdcxx/branches/4.2.x/src/once.h
Date Mon, 23 Jun 2008 14:27:26 GMT
Author: faridz
Date: Mon Jun 23 07:27:25 2008
New Revision: 670621

URL: http://svn.apache.org/viewvc?rev=670621&view=rev
Log:
2008-06-23  Farid Zaripov  <farid_zaripov@epam.com>

	* src/once.h (__rw_once): Don't use exception specification
	on MSVC in single threaded builds.

Modified:
    stdcxx/branches/4.2.x/src/once.h

Modified: stdcxx/branches/4.2.x/src/once.h
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/once.h?rev=670621&r1=670620&r2=670621&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/once.h (original)
+++ stdcxx/branches/4.2.x/src/once.h Mon Jun 23 07:27:25 2008
@@ -133,12 +133,12 @@
 
 extern "C" {
 
-#ifndef _RWSTD_MSVC
+#if !defined (_RWSTD_MSVC) || !defined (_RWSTD_REENTRANT)
 
 _RWSTD_EXPORT int
 __rw_once (__rw_once_t*, void (*)());
 
-#else
+#else   // _RWSTD_MSVC && _RWSTD_REENTRANT
 
     // MSVC by default assumes that C function doesn't throws any exception
     // and issues warning "function assumed not to throw an exception but does".
@@ -150,7 +150,7 @@
 _RWSTD_EXPORT int
 __rw_once (__rw_once_t*, void (*)() throw (...)) throw (...);
 
-#endif
+#endif   // !_RWSTD_MSVC || !_RWSTD_REENTRANT
 
 }   // extern "C"
 



Mime
View raw message