Re: [cc65] va_copy(): Any alternatives

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-05-08 22:33:49
Hi!

On Fri, May 06, 2005 at 12:34:52PM +0200, Spiro Trikaliotis wrote:
> trying to compile cc65 on a somehow older system, I found out that the
> linker stumbles about va_copy() - which is defined in C99.
>
> Is there any possibility to mimic that macro (on a gcc 2.95 system)?
> Unfortunately, using a newer compiler on this system is no option.

Stefan Haubenthal told me about this two weeks ago, but I couldn't sort out,
what the best solution is.

Could you please check if gcc 2.9.5 does already have something like va_copy
(maybe called __va_copy__ or similar)? This would be the easiest solution.
Otherwise

        ((dest) = (src))

as proposed by Oliver Schmidt is worth a try.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun May 8 22:34:02 2005

This archive was generated by hypermail 2.1.8 : 2005-05-08 22:34:07 CEST