summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-02-05 14:00:52 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-02-05 14:01:54 -0800
commit7e7a21b05b79ebf4b6637d949ef1d8dc8d316fdf (patch)
treeaa28f60dcb838fcc1126873fbfb5b3b4a1ab5e5b
parent09f8e2b0a92f3d25325f5b1df20384140261ee10 (diff)
downloaddiffutils-7e7a21b05b79ebf4b6637d949ef1d8dc8d316fdf.tar.gz
diff: use C23 bool
* bootstrap.conf (gnulib_modules): Add stdbool. * src/die.h, src/system.h: Do not include <stdbool.h>.
-rw-r--r--bootstrap.conf1
-rw-r--r--src/die.h1
-rw-r--r--src/system.h2
3 files changed, 1 insertions, 3 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index 4ddd0cc..bbbe0f5 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -78,6 +78,7 @@ sigprocmask
stat
stat-macros
stat-time
+stdbool
stdint
stpcpy
strcase
diff --git a/src/die.h b/src/die.h
index 44f4a2c..a9afa2f 100644
--- a/src/die.h
+++ b/src/die.h
@@ -20,7 +20,6 @@
# define DIE_H
# include <error.h>
-# include <stdbool.h>
# include <verify.h>
/* Like 'error (STATUS, ...)', except STATUS must be a nonzero constant.
diff --git a/src/system.h b/src/system.h
index 469522d..b37893f 100644
--- a/src/system.h
+++ b/src/system.h
@@ -108,8 +108,6 @@ int strcasecmp (char const *, char const *);
#define MIN(a, b) ((a) <= (b) ? (a) : (b))
#define MAX(a, b) ((a) >= (b) ? (a) : (b))
-#include <stdbool.h>
-
#include <attribute.h>
#include <intprops.h>
#include <propername.h>