Skip to content

Commit

Permalink
8339714: Delete tedious bool type define
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Sep 9, 2024
1 parent ea33709 commit bf2ceae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
9 changes: 1 addition & 8 deletions src/java.base/unix/native/libjsig/jsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
#include <stdbool.h>

#define MAX_SIGNALS NSIG

Expand Down
6 changes: 1 addition & 5 deletions src/utils/hsdis/binutils/hsdis-binutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf2ceae

Please sign in to comment.