From 4e879901b51cbb43dab36dd83f95a23f1dbaa4c0 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 01 2月 2023 18:27:00 +0800
Subject: [PATCH] Merge pull request #145 from j123b567/issue/117-allow-compilation-by-cxx

---
 examples/common/scpi-def.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 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_ */
 

--
Gitblit v1.9.1