Skip to content

Commit bf2ceae

Browse files
author
sendaoYan
committed
8339714: Delete tedious bool type define
1 parent ea33709 commit bf2ceae

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/java.base/unix/native/libjsig/jsig.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@
4242
#include <stdio.h>
4343
#include <stdlib.h>
4444
#include <string.h>
45-
46-
#if (__STDC_VERSION__ >= 199901L)
47-
#include <stdbool.h>
48-
#else
49-
#define bool int
50-
#define true 1
51-
#define false 0
52-
#endif
45+
#include <stdbool.h>
5346

5447
#define MAX_SIGNALS NSIG
5548

src/utils/hsdis/binutils/hsdis-binutils.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,10 @@
6161

6262
#include <bfd.h>
6363
#include <dis-asm.h>
64+
#include <stdbool.h>
6465

6566
#include "hsdis.h"
6667

67-
#ifndef bool
68-
#define bool int
69-
#define true 1
70-
#define false 0
71-
#endif /*bool*/
7268

7369
/* short names for stuff in hsdis.h */
7470
typedef decode_instructions_event_callback_ftype event_callback_t;

0 commit comments

Comments
 (0)