aboutsummaryrefslogtreecommitdiff
path: root/dis-asm.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-30 01:10:56 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:44 -0500
commit47cbc7aa5e942f7529b88568dc9bd1e71637ad3a (patch)
tree501ffdd781374c7e66f75707b69d578e1b777861 /dis-asm.h
parenta316e3788df2781fda119e801e9b3d753f89b752 (diff)
bdf: Remove last users of FALSE/TRUE
This brings bfd_boolean to the wonderful world of <stdbool.h>, it is needed because it defines bdf_boolean as an enum with values true and false, and some architectures use TRUE, FALSE and give problems when you try to use <stdbool.h> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'dis-asm.h')
-rw-r--r--dis-asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dis-asm.h b/dis-asm.h
index 1d8f4bdbc8..5f6f06cf69 100644
--- a/dis-asm.h
+++ b/dis-asm.h
@@ -10,6 +10,7 @@
#define DIS_ASM_H
#include <stdlib.h>
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
@@ -471,7 +472,6 @@ bfd_vma bfd_getl32 (const bfd_byte *addr);
bfd_vma bfd_getb32 (const bfd_byte *addr);
bfd_vma bfd_getl16 (const bfd_byte *addr);
bfd_vma bfd_getb16 (const bfd_byte *addr);
-typedef enum bfd_boolean {false, true} boolean;
-typedef boolean bfd_boolean;
+typedef bool bfd_boolean;
#endif /* ! defined (DIS_ASM_H) */