This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch bfd]: Add further support for x86_64 mingw


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]