Author: tkreuzer
Date: Sat Jan 22 23:22:10 2011
New Revision: 50471
URL:
http://svn.reactos.org/svn/reactos?rev=50471&view=rev
Log:
[CRT]
fix definition of _crt_va_arg for amd64
Modified:
branches/cmake-bringup/include/crt/vadefs.h
Modified: branches/cmake-bringup/include/crt/vadefs.h
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/crt/vadef…
==============================================================================
--- branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] (original)
+++ branches/cmake-bringup/include/crt/vadefs.h [iso-8859-1] Sat Jan 22 23:22:10 2011
@@ -90,9 +90,9 @@
#define _PTRSIZEOF(n) ((sizeof(n) + sizeof(void*) - 1) & ~(sizeof(void*) - 1))
#define _ISSTRUCT(t) ((sizeof(t) > sizeof(void*)) || (sizeof(t) & (sizeof(t)-1))
!= 0)
#define _crt_va_start(v,l) ((void)((v) = (va_list)_ADDRESSOF(l) + _PTRSIZEOF(l)))
-#define _crt_va_arg(v,t) _ISSTRUCT(t) ? \
+#define _crt_va_arg(v,t) (_ISSTRUCT(t) ? \
(**(t**)(((v) += sizeof(void*)) - sizeof(void*))) : \
- (*(t*)(((v) += sizeof(void*)) - sizeof(void*)))
+ (*(t*)(((v) += sizeof(void*)) - sizeof(void*))))
#define _crt_va_end(v) ((void)((v) = (va_list)0))
#define __va_copy(d,s) ((void)((d) = (s)))
#else //if defined(_M_IA64) || defined(_M_CEE)