You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/10/21 17:47:56 UTC

[mynewt-core] branch master updated: hw/ipc_nrf5340: Add c++ compatible export

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 01adbc9  hw/ipc_nrf5340: Add c++ compatible export
01adbc9 is described below

commit 01adbc9f28c593bfd6d429af29cc277dc04e0f72
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Oct 21 15:19:27 2021 +0200

    hw/ipc_nrf5340: Add c++ compatible export
    
    Standard #ifdef __cplusplus was missing from ipc_nrf5340.h
---
 hw/drivers/ipc_nrf5340/include/ipc_nrf5340/ipc_nrf5340.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/drivers/ipc_nrf5340/include/ipc_nrf5340/ipc_nrf5340.h b/hw/drivers/ipc_nrf5340/include/ipc_nrf5340/ipc_nrf5340.h
index 1f0b478..9f1a958 100644
--- a/hw/drivers/ipc_nrf5340/include/ipc_nrf5340/ipc_nrf5340.h
+++ b/hw/drivers/ipc_nrf5340/include/ipc_nrf5340/ipc_nrf5340.h
@@ -22,6 +22,10 @@
 
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Type of callback called when signal was received on IPC
  *
@@ -105,4 +109,8 @@ uint16_t ipc_nrf5340_available(int channel);
  */
 uint16_t ipc_nrf5340_consume(int channel, uint16_t len);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _HW_DRIVERS_IPC_NRF5340_H */