[rtems commit] confdefs: Add extern C guards to libpci.h

Chris Johns chrisj at rtems.org
Fri Oct 30 02:22:09 UTC 2020


Module:    rtems
Branch:    5
Commit:    f84c4a5b8107867a78326cca754c5278df768bb8
Changeset: http://git.rtems.org/rtems/commit/?id=f84c4a5b8107867a78326cca754c5278df768bb8

Author:    Jan Sommer <jan.sommer at dlr.de>
Date:      Thu Oct 29 14:11:32 2020 +0100

confdefs: Add extern C guards to libpci.h

Closes #4169

---

 cpukit/include/rtems/confdefs/libpci.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cpukit/include/rtems/confdefs/libpci.h b/cpukit/include/rtems/confdefs/libpci.h
index a68eea1..05731f5 100644
--- a/cpukit/include/rtems/confdefs/libpci.h
+++ b/cpukit/include/rtems/confdefs/libpci.h
@@ -21,6 +21,10 @@
 #error "Do not include this file directly, use <rtems/confdefs.h> instead"
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 /*
  *  Select PCI Configuration Library
  */
@@ -67,4 +71,8 @@
   #endif
 #endif
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _RTEMS_CONFDEFS_LIBPCI_H */



More information about the vc mailing list