You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/05/05 01:47:21 UTC

svn commit: r399887 - /incubator/stdcxx/trunk/include/rw/_config-gcc.h

Author: sebor
Date: Thu May  4 16:47:18 2006
New Revision: 399887

URL: http://svn.apache.org/viewcvs?rev=399887&view=rev
Log:
2006-05-04  Martin Sebor  <se...@roguewave.com>

	* _config-gcc.h (_RWSTD_NO_EXCEPTIONS): #defined in response to
	the __EXCEPTIONS macro not being #defined by the compiler, e.g.,
	when the -fno-exceptions command line option is used.

Modified:
    incubator/stdcxx/trunk/include/rw/_config-gcc.h

Modified: incubator/stdcxx/trunk/include/rw/_config-gcc.h
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/rw/_config-gcc.h?rev=399887&r1=399886&r2=399887&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/rw/_config-gcc.h (original)
+++ incubator/stdcxx/trunk/include/rw/_config-gcc.h Thu May  4 16:47:18 2006
@@ -39,6 +39,15 @@
 #  define _RWSTD_NO_EXPORT
 #endif
 
+#ifndef __EXCEPTIONS
+   // disable exceptions when the macro __EXCEPTIONS
+   // is not #defined by the compiler, e.g., when
+   // the -fno-exceptions option is used
+#  ifndef _RWSTD_NO_EXCEPTIONS
+#    define _RWSTD_NO_EXCEPTIONS
+#  endif
+#endif   // __EXCEPTIONS
+
 #if !defined (_RWSTD_USE_PURE_C_HEADERS)
      // disabled except when requested
 #  define _RWSTD_NO_PURE_C_HEADERS