[rtems commit] confdefs: Add extern C guards to libpci.h
Chris Johns
chrisj at rtems.org
Fri Oct 30 02:22:25 UTC 2020
Module: rtems
Branch: master
Commit: da9cc0b50c56a4a3a2413c302f68536889206797
Changeset: http://git.rtems.org/rtems/commit/?id=da9cc0b50c56a4a3a2413c302f68536889206797
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
---
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