[PATCH rtems-lwip] Add C++ include guard

berndmoessner80 at gmail.com berndmoessner80 at gmail.com
Mon Mar 25 19:29:19 UTC 2024


From: Bernd Moessner <berndmoessner80 at gmail.com>

---
 rtemslwip/include/netstart.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/rtemslwip/include/netstart.h b/rtemslwip/include/netstart.h
index 807183a..82cefce 100644
--- a/rtemslwip/include/netstart.h
+++ b/rtemslwip/include/netstart.h
@@ -30,6 +30,10 @@
 #include <lwip/sockets.h>
 #include <lwip/ip_addr.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int start_networking(
   struct netif  *net_interface,
   ip_addr_t     *ipaddr,
@@ -40,4 +44,8 @@ int start_networking(
 
 rtems_status_code start_networking_shared(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
-- 
2.34.1



More information about the devel mailing list