From 37217cf1b921a2a6e128b6134518912f0bd57f62 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 30 Jun 2025 23:15:23 +0200 Subject: Factor out translation unit includes to seperate header This allows both the usual build compiler and an LSP server like `clangd` to correctly locate symbols throughout every subunit. Signed-off-by: Mel --- boot/lex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot/lex.c') diff --git a/boot/lex.c b/boot/lex.c index 5b91187..f450798 100644 --- a/boot/lex.c +++ b/boot/lex.c @@ -7,6 +7,10 @@ * SPDX-License-Identifier: MPL-2.0 */ +#pragma once + +#include "catboot.h" + #define MAX_CHAR_BUFFER_SIZE 256 // byte position within a file. -- cgit 1.4.1