From 86cdc22043d4f765aa2ad289fac09aca518fe525 Mon Sep 17 00:00:00 2001 From: prife Date: Sat, 11 Jan 2014 16:37:13 +0800 Subject: [PATCH] kernel: rearrange the header file include order There are some CONFIG OPTIONS in rtdebug.h, which may influence the rtdef.h, so rtdebug.h should be head of the rtdef.h --- include/rtdebug.h | 4 +--- include/rtdef.h | 2 -- include/rtthread.h | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/rtdebug.h b/include/rtdebug.h index 6ef04f6bf9..2d93e88b94 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -21,8 +21,6 @@ #ifndef __RTDEBUG_H__ #define __RTDEBUG_H__ -#include - /* Using this macro to control all kernel debug features. */ #ifdef RT_DEBUG @@ -64,7 +62,7 @@ #endif #ifndef RT_DEBUG_INIT -#define RT_DEBUG_INIT 0 +#define RT_DEBUG_INIT 0 #endif /* Turn on this to enable context check */ diff --git a/include/rtdef.h b/include/rtdef.h index e21bc4eb41..f5b59fa7e8 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -34,8 +34,6 @@ #ifndef __RT_DEF_H__ #define __RT_DEF_H__ -#include - #ifdef __cplusplus extern "C" { #endif diff --git a/include/rtthread.h b/include/rtthread.h index 0891ed9bcc..f201f3d9d7 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -31,8 +31,9 @@ #ifndef __RT_THREAD_H__ #define __RT_THREAD_H__ -#include +#include #include +#include #include #include -- GitLab