aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-06-15 21:18:17 +0000
committerStan Shebs <shebs@codesourcery.com>1995-06-15 21:18:17 +0000
commite0151f38e1579b8f043603060c2ff0f84846652c (patch)
tree947cf43829d078065577a813e8ebd92b41fff7a3 /bfd/bfd-in.h
parentf6d6f1028e548ad691467c88d852b3ed94887881 (diff)
downloadgdb-e0151f38e1579b8f043603060c2ff0f84846652c.zip
gdb-e0151f38e1579b8f043603060c2ff0f84846652c.tar.gz
gdb-e0151f38e1579b8f043603060c2ff0f84846652c.tar.bz2
* bfd-in.h, bfd-in2.h (bfd_boolean): Rename bfd_true, bfd_false
to bfd_tttrue, bfd_fffalse so as not to conflict with functions. * coffswap.h (coff_swap_scnhdr_out): Remove version that was hacked for MPW C. * mpw-config.in: Set shell vars instead of pasting to makefile for each configuration, edit coffswap.h to make MPW C not choke. (i386-unknown-coff, sh-hitachi-hms): Recognize. * mpw-make.in (BFD_LIBS): Add versados.c.o. * versados.c (versados_scan): Properly cast results from bfd_alloc.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 2c333c9..7af736c 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -90,7 +90,8 @@ typedef struct _bfd bfd;
typedef enum bfd_boolean {false, true} boolean;
#define BFD_TRUE_FALSE
#else
-typedef enum bfd_boolean {bfd_false, bfd_true} boolean;
+/* Use enum names that will appear nowhere else. */
+typedef enum bfd_boolean {bfd_fffalse, bfd_tttrue} boolean;
#endif
/* A pointer to a position in a file. */
@@ -297,7 +298,7 @@ typedef struct sec *sec_ptr;
#define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
-#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma= (val)), ((ptr)->user_set_vma = true), true)
+#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma= (val)), ((ptr)->user_set_vma = (boolean)true), true)
#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),true)
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),true)
@@ -504,7 +505,7 @@ typedef struct _bfd_link_stack_heap bfd_link_stack_heap;
#define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
-#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = (bool)), true)
+#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = (boolean)(bool)), true)
/* Byte swapping routines. */