summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-23 10:05:17 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-23 10:21:41 +0200
commit46dde0fcefbff77eb814b3b0662cb01fb280d437 (patch)
tree2604ac7ba4f304b5aee62329f0083cbc5c8fdfab /c/src/lib/libbsp/powerpc/score603e
parenttestsuites: Move include for C++ compatibility (diff)
downloadrtems-46dde0fcefbff77eb814b3b0662cb01fb280d437.tar.bz2
bsps: Move extern "C" to not cover includes
Some includes may use C++ and this conflicts if surrounded extern "C".
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/include/bsp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
index dc78498a47..a98b5fb2c0 100644
--- a/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/score603e/include/bsp.h
@@ -14,10 +14,6 @@
#ifndef _BSP_H
#define _BSP_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define BSP_ZERO_WORKSPACE_AUTOMATICALLY TRUE
#include <bspopts.h>
@@ -45,6 +41,10 @@ extern "C" {
#include <gen2.h>
#include <bsp/irq.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* The following macro calculates the Baud constant. For the Z8530 chip.
*
@@ -190,10 +190,10 @@ void PCI_bus_write(volatile uint32_t *_addr, uint32_t _data);
int BSP_disconnect_clock_handler(void);
int BSP_connect_clock_handler(void);
-#endif /* ASM */
-
#ifdef __cplusplus
}
#endif
+#endif /* ASM */
+
#endif