[rtems commit] libblock: C++ compatibility
Sebastian Huber
sebh at rtems.org
Mon Mar 12 09:19:34 UTC 2018
Module: rtems
Branch: master
Commit: 0fb724a7bd66fbc25ea5c37ba76ebf962d8ed229
Changeset: http://git.rtems.org/rtems/commit/?id=0fb724a7bd66fbc25ea5c37ba76ebf962d8ed229
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 12 10:04:11 2018 +0100
libblock: C++ compatibility
---
cpukit/include/rtems/flashdisk.h | 8 ++++++++
cpukit/include/rtems/nvdisk.h | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/cpukit/include/rtems/flashdisk.h b/cpukit/include/rtems/flashdisk.h
index ec35309..bf2658e 100644
--- a/cpukit/include/rtems/flashdisk.h
+++ b/cpukit/include/rtems/flashdisk.h
@@ -24,6 +24,10 @@
#include <rtems.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/**
* @defgroup RTEMSFDisk Flash Disk Device
*
@@ -457,4 +461,8 @@ extern uint32_t rtems_flashdisk_configuration_size;
/** @} */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
diff --git a/cpukit/include/rtems/nvdisk.h b/cpukit/include/rtems/nvdisk.h
index 5570fb8..a42e07a 100644
--- a/cpukit/include/rtems/nvdisk.h
+++ b/cpukit/include/rtems/nvdisk.h
@@ -30,6 +30,10 @@
#include <rtems.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/**
* The base name of the nv disks.
*/
@@ -208,4 +212,8 @@ extern const rtems_nvdisk_config rtems_nvdisk_configuration[];
*/
extern uint32_t rtems_nvdisk_configuration_size;
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
More information about the vc
mailing list