diff --git a/lib/include/tree_sitter/api.h b/lib/include/tree_sitter/api.h index f04370e4..c1a97134 100644 --- a/lib/include/tree_sitter/api.h +++ b/lib/include/tree_sitter/api.h @@ -738,7 +738,7 @@ const char *ts_query_string_value_for_id( * You can then start executing another query on another node by calling * `ts_query_cursor_exec` again. */ -TSQueryCursor *ts_query_cursor_new(); +TSQueryCursor *ts_query_cursor_new(void); /** * Delete a query cursor, freeing all of the memory that it used. diff --git a/lib/src/query.c b/lib/src/query.c index 015bd133..19d6adbc 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -3,6 +3,7 @@ #include "./array.h" #include "./bits.h" #include "./point.h" +#include "./tree_cursor.h" #include "utf8proc.h" #include