You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2009/08/27 12:40:42 UTC
svn commit: r808359 - /stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h
Author: faridz
Date: Thu Aug 27 10:40:42 2009
New Revision: 808359
URL: http://svn.apache.org/viewvc?rev=808359&view=rev
Log:
2009-08-27 Farid Zaripov <fa...@apache.org>
* include/rw/_config-msvcrt.h: Disable exceptions if the macro
_CPPUNWIND is not #defined by compiler.
Modified:
stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h
Modified: stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h?rev=808359&r1=808358&r2=808359&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h (original)
+++ stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h Thu Aug 27 10:40:42 2009
@@ -134,6 +134,15 @@
#endif // _NATIVE_WCHAR_T_DEFINED
+#ifndef _CPPUNWIND
+ // disable exceptions when the macro _CPPUNWIND
+ // is not #deined by the compiler, e.g., when
+ // the /GX- option is used
+# ifndef _RWSTD_NO_EXCEPTIONS
+# define _RWSTD_NO_EXCEPTIONS
+# endif // _RWSTD_NO_EXCEPTIONS
+#endif
+
#if _RWSTD_VER_MAJOR < 5 && defined (_DLL)
// defined for binary compatibility with stdcxx 4.1.x
// (for all versions of MSVC and Intel C++)