From d02d2a52bc7d6ffb7a2320d2d56108878c6e9f9e Mon Sep 17 00:00:00 2001 From: Andreas Zahnen Date: Fri, 11 Oct 2024 13:56:44 +0200 Subject: [PATCH] fix c header --- libxtracfg/c/include/libxtracfg.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libxtracfg/c/include/libxtracfg.h b/libxtracfg/c/include/libxtracfg.h index 2df68ee..daa9894 100644 --- a/libxtracfg/c/include/libxtracfg.h +++ b/libxtracfg/c/include/libxtracfg.h @@ -1 +1,8 @@ -char* xtracfg_execute(const char* command, int* err); + +#ifdef __cplusplus +extern "C" { +#endif + char* xtracfg_execute(const char* command, int* err); +#ifdef __cplusplus +} +#endif