diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-10-23 10:05:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-10-23 10:21:41 +0200 |
commit | 46dde0fcefbff77eb814b3b0662cb01fb280d437 (patch) | |
tree | 2604ac7ba4f304b5aee62329f0083cbc5c8fdfab /c/src/lib/libbsp/powerpc/haleakala | |
parent | testsuites: Move include for C++ compatibility (diff) | |
download | rtems-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/haleakala')
-rw-r--r-- | c/src/lib/libbsp/powerpc/haleakala/include/bsp.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/powerpc/haleakala/include/bsp.h b/c/src/lib/libbsp/powerpc/haleakala/include/bsp.h index 6f97c57891..e5fc4cebca 100644 --- a/c/src/lib/libbsp/powerpc/haleakala/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/haleakala/include/bsp.h @@ -45,10 +45,6 @@ #ifndef _BSP_H #define _BSP_H -#ifdef __cplusplus -extern "C" { -#endif - #include <bspopts.h> #ifdef ASM @@ -69,6 +65,10 @@ extern "C" { #include <bsp/vectors.h> #include <bsp/default-initial-extension.h> + #ifdef __cplusplus + extern "C" { + #endif + /* Network Defines */ #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" @@ -83,10 +83,9 @@ extern "C" { #define BSP_UART_BAUD_BASE (11059200 / 16) /* Kilauea ext clock, max speed */ + #ifdef __cplusplus + } + #endif #endif /* ASM */ -#ifdef __cplusplus -} -#endif - #endif /* BSP_H */ |