This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch bfd]: Add further support for x86_64 mingw
- From: Brian Dessent <brian at dessent dot net>
- To: Kai Tietz <Kai dot Tietz at onevision dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 17 Jan 2008 15:56:15 -0800
- Subject: Re: [patch bfd]: Add further support for x86_64 mingw
- References: <OF62711462.06E9CFA1-ONC12573D3.004182B3-C12573D3.004229EB@onevision.de>
- Reply-to: Binutils <binutils at sourceware dot org>
Kai Tietz wrote:
> +#ifndef _WIN32
> #define sprintf_vma(s,x) sprintf (s, "%016llx", x)
> #define fprintf_vma(f,x) fprintf (f, "%016llx", x)
> #else
> +#define sprintf_vma(s,x) sprintf (s, "%016I64x", x)
> +#define fprintf_vma(f,x) fprintf (f, "%016I64x", x)
> +#endif
> +#else
Can't you just use the standard inttypes.h macros, e.g.
#define sprintf_vma(s,x) sprintf (s, "%016" PRIx64, x)
Brian