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-in.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-in.h')
-rw-r--r-- | bfd/bfd-in.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index f37efb2..43c342c 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -1,7 +1,7 @@ /* Main header file for the bfd library -- portable access to object files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -133,9 +133,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) \ |