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 <[EMAIL PROTECTED]>
* 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"