From 85ef20a2004c600dd04428520a79a0e47a54ed2d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 23 May 2026 23:24:53 +0530 Subject: fix: add extern C guard to tollgate_core_portal.h Needed for C++ consumers (NerdQAxePlus handler_tollgate.cpp). --- components/tollgate_core/src/tollgate_core_portal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components/tollgate_core/src') diff --git a/components/tollgate_core/src/tollgate_core_portal.h b/components/tollgate_core/src/tollgate_core_portal.h index 20c0552..82c4936 100644 --- a/components/tollgate_core/src/tollgate_core_portal.h +++ b/components/tollgate_core/src/tollgate_core_portal.h @@ -6,6 +6,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { const char *key; const char *val; @@ -31,4 +35,8 @@ int tollgate_core_portal_format_usage(const tg_session_t *session, bool tollgate_core_portal_is_captive_uri(const char *uri); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3