diff options
author | 2009-09-30 01:10:56 +0200 | |
---|---|---|
committer | 2009-10-05 09:32:44 -0500 | |
commit | 47cbc7aa5e942f7529b88568dc9bd1e71637ad3a (patch) | |
tree | 501ffdd781374c7e66f75707b69d578e1b777861 /dis-asm.h | |
parent | Add -Wold-style-* flags (diff) | |
download | qemu-kvm-47cbc7aa5e942f7529b88568dc9bd1e71637ad3a.tar.gz qemu-kvm-47cbc7aa5e942f7529b88568dc9bd1e71637ad3a.tar.bz2 qemu-kvm-47cbc7aa5e942f7529b88568dc9bd1e71637ad3a.zip |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) */ |