diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulersimple.h | 20 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/schedulersimpleimpl.h (renamed from cpukit/score/inline/rtems/score/schedulersimple.inl) | 16 |
2 files changed, 18 insertions, 18 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersimple.h b/cpukit/score/include/rtems/score/schedulersimple.h index 17514cc4c2..ba67c14729 100644 --- a/cpukit/score/include/rtems/score/schedulersimple.h +++ b/cpukit/score/include/rtems/score/schedulersimple.h @@ -18,6 +18,13 @@ #ifndef _RTEMS_SCORE_SCHEDULERSIMPLE_H #define _RTEMS_SCORE_SCHEDULERSIMPLE_H +#include <rtems/score/scheduler.h> +#include <rtems/score/schedulerpriority.h> + +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ScoreSchedulerSimple Simple Priority Scheduler * @@ -25,13 +32,6 @@ */ /**@{*/ -#ifdef __cplusplus -extern "C" { -#endif - -#include <rtems/score/scheduler.h> -#include <rtems/score/schedulerpriority.h> - /** * Entry points for Scheduler Simple */ @@ -215,15 +215,11 @@ void _Scheduler_simple_Ready_queue_enqueue_first( Thread_Control *the_thread ); -#ifndef __RTEMS_APPLICATION__ -#include <rtems/score/schedulersimple.inl> -#endif +/**@}*/ #ifdef __cplusplus } #endif -/**@}*/ - #endif /* end of include file */ diff --git a/cpukit/score/inline/rtems/score/schedulersimple.inl b/cpukit/score/include/rtems/score/schedulersimpleimpl.h index 8b2480ea0a..e8c4cc6cad 100644 --- a/cpukit/score/inline/rtems/score/schedulersimple.inl +++ b/cpukit/score/include/rtems/score/schedulersimpleimpl.h @@ -16,14 +16,14 @@ * http://www.rtems.com/license/LICENSE. */ -#ifndef _RTEMS_SCORE_SCHEDULERSIMPLE_H -# error "Never use <rtems/score/schedulersimple.inl> directly; include <rtems/score/schedulersimple.h> instead." -#endif +#ifndef _RTEMS_SCORE_SCHEDULERSIMPLEIMPL_H +#define _RTEMS_SCORE_SCHEDULERSIMPLEIMPL_H -#ifndef _RTEMS_SCORE_SCHEDULERSIMPLE_INL -#define _RTEMS_SCORE_SCHEDULERSIMPLE_INL +#include <rtems/score/schedulersimple.h> -#include <rtems/score/thread.h> +#ifdef __cplusplus +extern "C" { +#endif /** * @addtogroup ScoreScheduler @@ -96,5 +96,9 @@ RTEMS_INLINE_ROUTINE void _Scheduler_simple_Insert_priority_fifo( /** @} */ +#ifdef __cplusplus +} +#endif + #endif /* end of include file */ |