summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-28 01:06:10 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-28 01:09:01 -0700
commitf6fb2b9e1f94917601201f5d43c15e92e99b2a2f (patch)
treeca8ea61ece3c0f2aa56a7aeffcc52c41b9ce4dfd /lib-src
parenta9b29ee4a0ffa4878d67eaf518dbeed098844b9e (diff)
downloademacs-f6fb2b9e1f94917601201f5d43c15e92e99b2a2f.tar.gz
Port better to C23 bool+true+false keywords
C23 is adding the C++ keywords bool, true, and false; prefer them to <stdbool.h> if they are available. * admin/merge-gnulib (GNULIB_MODULES): Add stdbool, which emulates C23 on pre-C23 platforms. (AVOIDED_MODULES): Remove stdbool; Gnulib has renamed this module to stdbool-c99 and nobody uses it so it does not need to be avoided. * m4/c-bool.m4: New file, from Gnulib stdbool module. * lib-src/seccomp-filter.c, src/conf_post.h, src/dynlib.h: * src/emacs-module.c, src/nsterm.m, src/systhread.h: * test/src/emacs-module-resources/mod-test.c: Use the C23 style and use bool without including <stdbool.h>. The Gnulib stdbool module causes config.h to include stdbool.h on pre-C23 platforms. * src/emacs-module.h.in: Don’t include <stdbool.h> if C23 or later, or if it has already been included.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/seccomp-filter.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib-src/seccomp-filter.c b/lib-src/seccomp-filter.c
index 9f0de7d64f8..4bd2816dfc5 100644
--- a/lib-src/seccomp-filter.c
+++ b/lib-src/seccomp-filter.c
@@ -39,7 +39,6 @@ variants of those files that can be used to sandbox Emacs before
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
-#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>