Skip to content

Commit 72993e7

Browse files
committed
[fpcmp] Use stdbool.h instead of typedef
The typedef produces a compilation error with GCC 15.
1 parent 1f917f9 commit 72993e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/fpcmp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <ctype.h>
1414
#include <math.h>
15+
#include <stdbool.h>
1516
#include <stddef.h>
1617
#include <stdio.h>
1718
#include <stdlib.h>
@@ -21,10 +22,6 @@ const char *g_program;
2122

2223
/* *** */
2324

24-
typedef int bool;
25-
#define true ((bool) 1)
26-
#define false ((bool) 0)
27-
2825
static bool isSignedChar(char C) {
2926
return (C == '+' || C == '-');
3027
}

0 commit comments

Comments
 (0)