8339714: Delete tedious bool type define

Reviewed-by: jwaters, dholmes
This commit is contained in:
SendaoYan 2024-09-11 02:12:08 +00:00 committed by David Holmes
parent 07643237d4
commit a6faf8247b
2 changed files with 2 additions and 13 deletions

View file

@ -42,14 +42,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if (__STDC_VERSION__ >= 199901L)
#include <stdbool.h>
#else
#define bool int
#define true 1
#define false 0
#endif
#define MAX_SIGNALS NSIG

View file

@ -61,14 +61,10 @@
#include <bfd.h>
#include <dis-asm.h>
#include <stdbool.h>
#include "hsdis.h"
#ifndef bool
#define bool int
#define true 1
#define false 0
#endif /*bool*/
/* short names for stuff in hsdis.h */
typedef decode_instructions_event_callback_ftype event_callback_t;