From 4e0405d07ae371644f83dd08000dc11bcac719e1 Mon Sep 17 00:00:00 2001 From: Ellis Sarza-Nguyen Date: Tue, 13 Jan 2026 09:06:58 -0800 Subject: [PATCH] [protocol] Fix CPP header endif Seeing compile error with C and C++ linkage when building with unittest. This is just moving the code with the extern C. Signed-off-by: Ellis Sarza-Nguyen --- protocol/console.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/console.h b/protocol/console.h index f212de2..4e645e4 100644 --- a/protocol/console.h +++ b/protocol/console.h @@ -26,10 +26,6 @@ extern "C" { #include "transports/libhoth_device.h" -#ifdef __cplusplus -} -#endif - #define EROT_CHANNEL_ID 0x45524F54 // 'EROT' #define HOTH_FIFO_MAX_REQUEST_SIZE 1024 #define HOTH_PRV_CMD_HOTH_CHANNEL_STATUS 0x0037 @@ -157,4 +153,8 @@ int libhoth_set_uart_config(struct libhoth_device *dev, const struct libhoth_htool_console_opts *opts, struct hoth_channel_uart_config *config); +#ifdef __cplusplus +} +#endif + #endif