[PATCH v1 1/1] confdefs: Add extern C guards to libpci.h

Jan Sommer jan.sommer at dlr.de
Thu Oct 29 13:11:32 UTC 2020


---
 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 a68eea1903..05731f5686 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 */
-- 
2.17.1



More information about the devel mailing list