From 6ba34b09dc5b5adbc32959d71b6ddf1984f36493 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 26 Jul 2007 06:10:24 +0000 Subject: =?UTF-8?q?2007-07-26=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * include/rtems/bspIo.h, include/rtems/pci.h: Add extern "C" guards. Reported by Robert S. Grimes . --- cpukit/ChangeLog | 6 ++++++ cpukit/include/rtems/bspIo.h | 8 ++++++++ cpukit/include/rtems/pci.h | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 60fed9b1b2..31c0e04483 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2007-07-26 Ralf Corsépius + + * include/rtems/bspIo.h, include/rtems/pci.h: + Add extern "C" guards. Reported by + Robert S. Grimes . + 2007-05-29 Joel Sherrill * score/include/rtems/score/copyrt.h: Update copyright notice. diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h index 775e8ce4be..d3eda5610a 100644 --- a/cpukit/include/rtems/bspIo.h +++ b/cpukit/include/rtems/bspIo.h @@ -14,6 +14,10 @@ #ifndef _RTEMS_BSPIO_H #define _RTEMS_BSPIO_H +#ifdef __cplusplus +extern "C" { +#endif + /* * All the functions declared as extern after this comment * MUST be implemented in each BSP. Using this function, @@ -36,4 +40,8 @@ extern BSP_polling_getchar_function_type BSP_poll_char; extern void vprintk(char *fmt, va_list ap); extern void printk(char *fmt, ...); +#ifdef __cplusplus +} +#endif + #endif diff --git a/cpukit/include/rtems/pci.h b/cpukit/include/rtems/pci.h index 162254c58d..6e0f796faf 100644 --- a/cpukit/include/rtems/pci.h +++ b/cpukit/include/rtems/pci.h @@ -18,6 +18,10 @@ #ifndef _RTEMS_PCI_H #define _RTEMS_PCI_H +#ifdef __cplusplus +extern "C" { +#endif + /* * Under PCI, each device has 256 bytes of configuration address space, * of which the first 64 bytes are standardized as follows: @@ -1222,4 +1226,8 @@ pci_find_device( */ extern unsigned char pci_bus_count(); +#ifdef __cplusplus +} +#endif + #endif /* _RTEMS_PCI_H */ -- cgit v1.2.3