浏览代码

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
prife 11 年之前
父节点
当前提交
86cdc22043
共有 3 个文件被更改,包括 3 次插入6 次删除
  1. 1 3
      include/rtdebug.h
  2. 0 2
      include/rtdef.h
  3. 2 1
      include/rtthread.h

+ 1 - 3
include/rtdebug.h

@@ -21,8 +21,6 @@
 #ifndef __RTDEBUG_H__
 #define __RTDEBUG_H__
 
-#include <rtconfig.h>
-
 /* 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 */

+ 0 - 2
include/rtdef.h

@@ -34,8 +34,6 @@
 #ifndef __RT_DEF_H__
 #define __RT_DEF_H__
 
-#include <rtconfig.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif

+ 2 - 1
include/rtthread.h

@@ -31,8 +31,9 @@
 #ifndef __RT_THREAD_H__
 #define __RT_THREAD_H__
 
-#include <rtdef.h>
+#include <rtconfig.h>
 #include <rtdebug.h>
+#include <rtdef.h>
 #include <rtservice.h>
 #include <rtm.h>