[rtems commit] rtems: Move includes out of extern "C" scope
Sebastian Huber
sebh at rtems.org
Thu Nov 8 12:20:05 UTC 2018
Module: rtems
Branch: master
Commit: 2c8b87f99859cf2c0c41f1c86272a7cccad9d511
Changeset: http://git.rtems.org/rtems/commit/?id=2c8b87f99859cf2c0c41f1c86272a7cccad9d511
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Nov 8 12:10:41 2018 +0100
rtems: Move includes out of extern "C" scope
---
cpukit/include/rtems/extension.h | 8 ++++----
cpukit/include/rtems/init.h | 8 ++++----
cpukit/include/rtems/rtems/intr.h | 8 ++++----
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/cpukit/include/rtems/extension.h b/cpukit/include/rtems/extension.h
index f22abf7..cfbf061 100644
--- a/cpukit/include/rtems/extension.h
+++ b/cpukit/include/rtems/extension.h
@@ -16,15 +16,15 @@
#ifndef _RTEMS_EXTENSION_H
#define _RTEMS_EXTENSION_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rtems/score/object.h>
#include <rtems/score/userext.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
Objects_Control Object;
User_extensions_Control Extension;
diff --git a/cpukit/include/rtems/init.h b/cpukit/include/rtems/init.h
index fa3108e..86b1408 100644
--- a/cpukit/include/rtems/init.h
+++ b/cpukit/include/rtems/init.h
@@ -28,14 +28,14 @@
#ifndef _RTEMS_INIT_H
#define _RTEMS_INIT_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rtems/rtems/types.h>
#include <rtems/config.h>
#include <rtems/rtems/intr.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @brief Initializes the system and starts multitasking.
*
diff --git a/cpukit/include/rtems/rtems/intr.h b/cpukit/include/rtems/rtems/intr.h
index 7f99d93..8243382 100644
--- a/cpukit/include/rtems/rtems/intr.h
+++ b/cpukit/include/rtems/rtems/intr.h
@@ -21,14 +21,14 @@
#ifndef _RTEMS_RTEMS_INTR_H
#define _RTEMS_RTEMS_INTR_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rtems/rtems/status.h>
#include <rtems/score/isr.h>
#include <rtems/score/isrlock.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @defgroup ClassicINTR Interrupts
*
More information about the vc
mailing list