]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Allow pci.h to be included from C++
authorMartin Mares <mj@ucw.cz>
Sun, 8 Jun 2025 14:58:09 +0000 (16:58 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Jun 2025 14:58:09 +0000 (16:58 +0200)
lib/pci.h

index 71dae3aeb90f2b1217922073a98c578b0584a7b9..58fd5b43717021a5410c9b42376a365ece85acb2 100644 (file)
--- a/lib/pci.h
+++ b/lib/pci.h
@@ -1,7 +1,7 @@
 /*
  *     The PCI Library
  *
- *     Copyright (c) 1997--2024 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2025 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL v2+
  *
 #ifndef _PCI_LIB_H
 #define _PCI_LIB_H
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 #ifndef PCI_CONFIG_H
 #include "config.h"
 #endif
@@ -313,4 +317,8 @@ enum pci_lookup_mode {
   PCI_LOOKUP_NO_HWDB = 0x800000,       /* Do not ask udev's hwdb */
 };
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif