Changeset 46dde0fc in rtems for c/src/lib/libbsp/sh


Ignore:
Timestamp:
10/23/14 08:05:17 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
b442032
Parents:
3e739ae
git-author:
Sebastian Huber <sebastian.huber@…> (10/23/14 08:05:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/14 08:21:41)
Message:

bsps: Move extern "C" to not cover includes

Some includes may use C++ and this conflicts if surrounded extern "C".

Location:
c/src/lib/libbsp/sh
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sh/gensh1/include/bsp.h

    r3e739ae r46dde0fc  
    2626#define _BSP_H
    2727
    28 #ifdef __cplusplus
    29 extern "C" {
    30 #endif
    31 
    3228#include <rtems.h>
    3329#include <rtems/clockdrv.h>
     
    3632#include <bspopts.h>
    3733#include <bsp/default-initial-extension.h>
     34
     35#ifdef __cplusplus
     36extern "C" {
     37#endif
    3838
    3939/* EDIT: To activate the sci driver, change the define below */
  • c/src/lib/libbsp/sh/gensh2/include/bsp.h

    r3e739ae r46dde0fc  
    3737#define _BSP_H
    3838
    39 #ifdef __cplusplus
    40 extern "C" {
    41 #endif
    42 
    4339#include <rtems.h>
    4440#include <rtems/clockdrv.h>
     
    5147
    5248#include <sh/sci.h>
     49
     50#ifdef __cplusplus
     51extern "C" {
     52#endif
    5353
    5454#if 1
  • c/src/lib/libbsp/sh/gensh4/include/bsp.h

    r3e739ae r46dde0fc  
    4141#define _BSP_H
    4242
    43 #ifdef __cplusplus
    44 extern "C" {
    45 #endif
    46 
    4743#include <rtems.h>
    4844#include <rtems/clockdrv.h>
     
    5349
    5450#include "rtems/score/sh7750_regs.h"
     51
     52#ifdef __cplusplus
     53extern "C" {
     54#endif
    5555
    5656/* Constants */
  • c/src/lib/libbsp/sh/shsim/include/bsp.h

    r3e739ae r46dde0fc  
    2727#ifndef ASM
    2828
    29 #ifdef __cplusplus
    30 extern "C" {
    31 #endif
    32 
    3329#include <rtems.h>
    3430#include <rtems/clockdrv.h>
     
    4238 */
    4339#include <rtems/devnull.h>
     40
     41#ifdef __cplusplus
     42extern "C" {
     43#endif
    4444
    4545/* Constants */
Note: See TracChangeset for help on using the changeset viewer.