diff options
author | Nick Clifton <nickc@redhat.com> | 2008-01-25 16:18:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-01-25 16:18:41 +0000 |
commit | 6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce (patch) | |
tree | 20b99c7b038e8a3008462a0137410a21b286e071 /bfd/bfd-in2.h | |
parent | 53d25da64b00c1cf7f10d04785d66fa003f8bfc9 (diff) | |
download | gdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.zip gdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.tar.gz gdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.tar.bz2 |
Add mingw I64 support for printing long and long long values
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 9e18548..b514ad1 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -140,9 +140,14 @@ typedef BFD_HOST_U_64_BIT symvalue; #define sprintf_vma(s,x) sprintf (s, "%016lx", x) #define fprintf_vma(f,x) fprintf (f, "%016lx", x) #elif BFD_HOST_64BIT_LONG_LONG +#ifndef __MSVCRT__ #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 #define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff))) #define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) #define fprintf_vma(s,x) \ |