stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r808359 - /stdcxx/branches/4.2.x/include/rw/_config-msvcrt.h
Date Thu, 27 Aug 2009 10:40:42 GMT
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  <faridz@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++)



Mime
View raw message