diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-12 07:16:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-07-12 07:16:41 +0000 |
commit | d2df793a7137120047017593d26669e5092e3841 (patch) | |
tree | 691f20fd53ad1cb970387e3a5f434824cb1fb2fe /bfd/bfd-in2.h | |
parent | db42c6e8ee92965ca26f4ccf2183d26a8c560931 (diff) | |
download | gdb-d2df793a7137120047017593d26669e5092e3841.zip gdb-d2df793a7137120047017593d26669e5092e3841.tar.gz gdb-d2df793a7137120047017593d26669e5092e3841.tar.bz2 |
Add support for building on a 64-bit Windows host.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 5c184c3..317d32e 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -83,6 +83,7 @@ extern "C" { #define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@ #define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@ +#define BFD_HOST_64BIT_LONG_LONG @BFD_HOST_64BIT_LONG_LONG@ #define BFD_HOST_LONG_LONG @BFD_HOST_LONG_LONG@ #if @BFD_HOST_64_BIT_DEFINED@ #define BFD_HOST_64_BIT @BFD_HOST_64_BIT@ @@ -103,6 +104,10 @@ typedef BFD_HOST_U_64_BIT bfd_uint64_t; #endif #endif +/* Declaring a type wide enough to hold a host long and a host pointer. */ +#define BFD_HOSTPTR_T @BFD_HOSTPTR_T@ +typedef BFD_HOSTPTR_T bfd_hostptr_t; + /* Forward declaration. */ typedef struct bfd bfd; @@ -136,6 +141,9 @@ typedef BFD_HOST_U_64_BIT symvalue; #if BFD_HOST_64BIT_LONG #define sprintf_vma(s,x) sprintf (s, "%016lx", x) #define fprintf_vma(f,x) fprintf (f, "%016lx", x) +#elif BFD_HOST_64BIT_LONG_LONG +#define sprintf_vma(s,x) sprintf (s, "%016llx", x) +#define fprintf_vma(f,x) fprintf (f, "%016llx", x) #else #define _bfd_int64_low(x) ((unsigned long) (((x) & 0xffffffff))) #define _bfd_int64_high(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) |