summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-10-28 16:38:37 -0700
committerYuan Fu <casouri@gmail.com>2022-10-28 16:46:10 -0700
commit434fc2a22e4fd65fd63018e9373cbf56b51f8ab2 (patch)
tree9479ad30c417a78ee7535cde7c14bec6a7b81a6a /src/emacs.c
parent0480e9c445d59fd5ec9b38ebe3919fee2aabf8d2 (diff)
downloademacs-434fc2a22e4fd65fd63018e9373cbf56b51f8ab2.tar.gz
Make Emacs compile without tree-sitter library
* lisp/treesit.el: Add function declaration forms. * src/emacs.c: Always include syms_of_treesit.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ba8b9c651a7..ed21cce1e25 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -136,9 +136,9 @@ extern char etext;
#include <sys/resource.h>
#endif
-#ifdef HAVE_TREE_SITTER
+/* We don't guard this with HAVE_TREE_SITTER because treesit.o is
+ always compiled (to provide treesit-available-p). */
#include "treesit.h"
-#endif
#include "pdumper.h"
#include "fingerprint.h"
@@ -2269,10 +2269,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
#ifdef HAVE_MODULES
syms_of_module ();
#endif
-
-#ifdef HAVE_TREE_SITTER
+ /* We don't guard this with HAVE_TREE_SITTER because treesit.o
+ is always compiled (to provide treesit-available-p). */
syms_of_treesit ();
-#endif
#ifdef HAVE_SOUND
syms_of_sound ();
#endif