stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r675803 - /stdcxx/branches/4.3.x/include/rw/_defs.h
Date Thu, 10 Jul 2008 23:10:15 GMT
Author: sebor
Date: Thu Jul 10 16:10:15 2008
New Revision: 675803

URL: http://svn.apache.org/viewvc?rev=675803&view=rev
Log:
2008-07-10  Martin Sebor  <sebor@roguewave.com>

	STDCXX-990
	* include/rw/_defs.h [2 < __GNUG__](_RWSTD_VA_COPY): Unconditionally
	defined to gcc's __builtin_va_copy() to avoid errors due to potential
	configuration differences (e.g., after configuring in C++ 1998 mode
	and compiling with the -std=c++0x option).

Modified:
    stdcxx/branches/4.3.x/include/rw/_defs.h

Modified: stdcxx/branches/4.3.x/include/rw/_defs.h
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/include/rw/_defs.h?rev=675803&r1=675802&r2=675803&view=diff
==============================================================================
--- stdcxx/branches/4.3.x/include/rw/_defs.h (original)
+++ stdcxx/branches/4.3.x/include/rw/_defs.h Thu Jul 10 16:10:15 2008
@@ -1580,15 +1580,15 @@
 #endif   // _RWSTD_NO_MEMBER_TEMPLATES
 
 
-#if defined (va_copy) || !defined _RWSTD_NO_VA_COPY
+#if 2 < __GNUG__
+   // use gcc builtin by default
+#  define _RWSTD_VA_COPY(va_dst, va_src) \
+          __builtin_va_copy (va_dst, va_src)
+#elif defined (va_copy) || !defined _RWSTD_NO_VA_COPY
    // either va_copy() is already #defined (because <stdarg.h>
    // is already #included), or it was detected at configuration
 #  define _RWSTD_VA_COPY(va_dst, va_src) \
           va_copy (va_dst, va_src)
-#elif 2 < __GNUG__
-   // no va_copy() macro detected, use gcc builtin
-#  define _RWSTD_VA_COPY(va_dst, va_src) \
-          __builtin_va_copy (va_dst, va_src)
 #elif defined (_RWSTD_NO_VA_LIST_ARRAY)
    // va_list is not an array, use ordinary assignment to copy
 #  define _RWSTD_VA_COPY(va_dst, va_src) \



Mime
View raw message