[PATCH 1/4] various .h files: Add missing C++ extern wrappers
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Sep 1 21:40:51 UTC 2015
Updates #2405.
---
c/src/lib/libbsp/shared/umon/umon.h | 4 ++++
cpukit/posix/include/rtems/posix/ptimer.h | 4 ++++
cpukit/rtems/include/rtems/rtems/dpmemimpl.h | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/c/src/lib/libbsp/shared/umon/umon.h b/c/src/lib/libbsp/shared/umon/umon.h
index 3c5bdf9..560ab23 100644
--- a/c/src/lib/libbsp/shared/umon/umon.h
+++ b/c/src/lib/libbsp/shared/umon/umon.h
@@ -61,4 +61,8 @@ int rtems_initialize_tfs_filesystem(
*/
int umoncons_poll_read(int minor);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/cpukit/posix/include/rtems/posix/ptimer.h b/cpukit/posix/include/rtems/posix/ptimer.h
index 7cc0516..541a0f3 100644
--- a/cpukit/posix/include/rtems/posix/ptimer.h
+++ b/cpukit/posix/include/rtems/posix/ptimer.h
@@ -89,4 +89,8 @@ int timer_getoverrun(
/** @} */
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
index 9fd2e6c..89fc4eb 100644
--- a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
@@ -28,6 +28,10 @@
* @{
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* This constant is defined to extern most of the time when using
* this header file. However by defining it to nothing, the data
--
1.8.3.1
More information about the devel
mailing list