summaryrefslogtreecommitdiff
path: root/src/dynlib.h
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 /src/dynlib.h
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 'src/dynlib.h')
-rw-r--r--src/dynlib.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dynlib.h b/src/dynlib.h
index 03b8f983564..9a11c128981 100644
--- a/src/dynlib.h
+++ b/src/dynlib.h
@@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#define DYNLIB_H
#include <attribute.h>
-#include <stdbool.h>
typedef void *dynlib_handle_ptr;
dynlib_handle_ptr dynlib_open (const char *path);