From cc47c934744c759fa47133fc70b7d23aa4a2d7f1 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 周一, 21 4月 2025 19:55:59 +0800
Subject: [PATCH] 修改了一部分的宏定义声明和屏蔽了一些调试时的无效干扰

---
 examples/common/scpi-def.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/examples/common/scpi-def.h b/examples/common/scpi-def.h
index 3b0acca..471c9a9 100644
--- a/examples/common/scpi-def.h
+++ b/examples/common/scpi-def.h
@@ -28,11 +28,16 @@
 
 #ifndef __SCPI_DEF_H_
 #define __SCPI_DEF_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #include "scpi/scpi.h"
 
 #define SCPI_INPUT_BUFFER_LENGTH 256
 #define SCPI_ERROR_QUEUE_SIZE 17
+
+
 #define SCPI_IDN1 "MANUFACTURE"
 #define SCPI_IDN2 "INSTR2013"
 #define SCPI_IDN3 NULL
@@ -53,5 +58,8 @@
 
 scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context);
 
+#ifdef __cplusplus
+}
+#endif
 #endif /* __SCPI_DEF_H_ */
 

--
Gitblit v1.9.1