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/haleakala/include/bsp.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/haleakala') 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 #ifdef ASM @@ -69,6 +65,10 @@ extern "C" { #include #include + #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 */ -- cgit v1.2.3