diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-10-08 15:12:29 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2010-10-08 15:12:29 +0000 |
commit | a46d1146ad27478805dfed8fd89c3d04b77f9b96 (patch) | |
tree | 333b7ff065d4365492f14cce31da4e79c75060fe /binutils/nm.c | |
parent | 9ccb8af972518810c66317c6c942d2268bfb5123 (diff) | |
download | gdb-a46d1146ad27478805dfed8fd89c3d04b77f9b96.zip gdb-a46d1146ad27478805dfed8fd89c3d04b77f9b96.tar.gz gdb-a46d1146ad27478805dfed8fd89c3d04b77f9b96.tar.bz2 |
* nm.c (value_format_64bit): Define appropriately for __MSVCRT__.
(set_print_radix): Update for __MSVCRT__ definition of
value_format_64bit.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 862b2b9..3b75edf 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -164,7 +164,11 @@ static char value_format_32bit[] = "%08lx"; #if BFD_HOST_64BIT_LONG static char value_format_64bit[] = "%016lx"; #elif BFD_HOST_64BIT_LONG_LONG +#ifndef __MSVCRT__ static char value_format_64bit[] = "%016llx"; +#else +static char value_format_64bit[] = "%016I64x"; +#endif #endif static int print_width = 0; static int print_radix = 16; @@ -285,7 +289,11 @@ set_print_radix (char *radix) #if BFD_HOST_64BIT_LONG value_format_64bit[5] = *radix; #elif BFD_HOST_64BIT_LONG_LONG +#ifndef __MSVCRT__ value_format_64bit[6] = *radix; +#else + value_format_64bit[7] = *radix; +#endif #endif other_format[3] = desc_format[3] = *radix; break; |