From: Paolo Bonzini Date: Mon, 17 Aug 2009 16:53:59 GMT Subject: Re: [PATCH 05/11] Remove va_copy at MSVC because there are va_copy. Message-ID: <4A898B27.3040507@gnu.org> In-Reply-To: <1250525040-5868-1-git-send-email-lznuaa@gmail.com> On 08/17/2009 06:04 PM, Frank Li wrote: > MSVs have not implemented va_copy. remove va_copy at MSVC environment. > It will malloc buffer each time. ... but only a 257-byte buffer as dscho pointed out. In many places that do not have va_copy, a simple assignment works. And va_end is almost always a no-op. So what about #ifndef va_copy #define va_copy(dst, src) ((dst) = (src)) #endif if it works on MSVC? Paolo