From 46dde0fcefbff77eb814b3b0662cb01fb280d437 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 23 Oct 2014 10:05:17 +0200 Subject: bsps: Move extern "C" to not cover includes Some includes may use C++ and this conflicts if surrounded extern "C". --- c/src/lib/libbsp/powerpc/score603e/include/bsp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/score603e/include/bsp.h') 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 @@ -45,6 +41,10 @@ extern "C" { #include #include +#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 -- cgit v1.2.3