From 91731b656ab61760d9dd28dc441366cf1f6a256c Mon Sep 17 00:00:00 2001 From: helge <helgewurst@web.de> Date: ćšć, 04 11æ 2021 21:25:20 +0800 Subject: [PATCH] add extern C --- examples/common/scpi-def.h | 6 ++++++ examples/test-LwIP-netconn/scpi_server.h | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/common/scpi-def.h b/examples/common/scpi-def.h index 3b0acca..9e89f95 100644 --- a/examples/common/scpi-def.h +++ b/examples/common/scpi-def.h @@ -28,6 +28,9 @@ #ifndef __SCPI_DEF_H_ #define __SCPI_DEF_H_ +#ifdef __cplusplus +extern "C" { +#endif #include "scpi/scpi.h" @@ -53,5 +56,8 @@ scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context); +#ifdef __cplusplus +} +#endif #endif /* __SCPI_DEF_H_ */ diff --git a/examples/test-LwIP-netconn/scpi_server.h b/examples/test-LwIP-netconn/scpi_server.h index 4d2895f..9a8f944 100644 --- a/examples/test-LwIP-netconn/scpi_server.h +++ b/examples/test-LwIP-netconn/scpi_server.h @@ -28,7 +28,9 @@ #ifndef _SCPI_SERVER_H_ #define _SCPI_SERVER_H_ - +#ifdef __cplusplus +extern "C" { +#endif #include <stdint.h> @@ -37,5 +39,7 @@ void SCPI_AddError(int16_t err); void SCPI_RequestControl(void); - +#ifdef __cplusplus +} +#endif #endif /* _SCPI_SERVER_H_ */ -- Gitblit v1.9.1