mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8339714: Delete tedious bool type define
Reviewed-by: jwaters, dholmes
This commit is contained in:
parent
07643237d4
commit
a6faf8247b
2 changed files with 2 additions and 13 deletions
|
@ -42,14 +42,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#if (__STDC_VERSION__ >= 199901L)
|
|
||||||
#include <stdbool.h>
|
|
||||||
#else
|
|
||||||
#define bool int
|
|
||||||
#define true 1
|
|
||||||
#define false 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_SIGNALS NSIG
|
#define MAX_SIGNALS NSIG
|
||||||
|
|
||||||
|
|
|
@ -61,14 +61,10 @@
|
||||||
|
|
||||||
#include <bfd.h>
|
#include <bfd.h>
|
||||||
#include <dis-asm.h>
|
#include <dis-asm.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "hsdis.h"
|
#include "hsdis.h"
|
||||||
|
|
||||||
#ifndef bool
|
|
||||||
#define bool int
|
|
||||||
#define true 1
|
|
||||||
#define false 0
|
|
||||||
#endif /*bool*/
|
|
||||||
|
|
||||||
/* short names for stuff in hsdis.h */
|
/* short names for stuff in hsdis.h */
|
||||||
typedef decode_instructions_event_callback_ftype event_callback_t;
|
typedef decode_instructions_event_callback_ftype event_callback_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue