[rtems commit] flashdev.h: Add missing C++ include guards
Joel Sherrill
joel at rtems.org
Tue Jan 16 16:58:21 UTC 2024
Module: rtems
Branch: master
Commit: a43163d058bd8d9da901e7a7e48591e2ff6aaabe
Changeset: http://git.rtems.org/rtems/commit/?id=a43163d058bd8d9da901e7a7e48591e2ff6aaabe
Author: Bernd Moessner <berndmoessner80 at gmail.com>
Date: Sat Jan 6 20:26:10 2024 +0100
flashdev.h: Add missing C++ include guards
Updates #4981
---
cpukit/include/dev/flash/flashdev.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h
index d1dc08a5c4..6759357206 100644
--- a/cpukit/include/dev/flash/flashdev.h
+++ b/cpukit/include/dev/flash/flashdev.h
@@ -39,6 +39,11 @@
#include <rtems/thread.h>
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
typedef struct rtems_flashdev rtems_flashdev;
/**
@@ -454,6 +459,10 @@ void rtems_flashdev_destroy_and_free(
rtems_flashdev *flash
);
+#ifdef __cplusplus
+}
+#endif
+
/** @} */
#endif /* _DEV_FLASHDEV_H */
More information about the vc
mailing list