summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-07-18 10:22:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-09-23 10:13:28 +0200
commit54e8636b8db2fc9e1d35311380adf3edd975cc42 (patch)
tree003d4ce1f61fe42b65d4c989d8ddd661c8fed203 /rtemsbsd
parentC++ compatibility for kernel space <sys/sysctl.h> (diff)
downloadrtems-libbsd-54e8636b8db2fc9e1d35311380adf3edd975cc42.tar.bz2
C++ compatiblity for kernel space header
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-kernel-space.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-space.h b/rtemsbsd/include/machine/rtems-bsd-kernel-space.h
index b22d73e2..09bcecf1 100644
--- a/rtemsbsd/include/machine/rtems-bsd-kernel-space.h
+++ b/rtemsbsd/include/machine/rtems-bsd-kernel-space.h
@@ -58,6 +58,10 @@
#include <machine/rtems-bsd-version.h>
#include <machine/rtems-bsd-kernel-namespace.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Assert */
void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr);
@@ -94,4 +98,8 @@ void rtems_bsd_assert_func(const char *file, int line, const char *func, const c
#define EDOOFUS __ELASTERROR
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_KERNEL_SPACE_H_ */