提交 86cdc220 编写于 作者: P prife

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
上级 c07a78ae
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#ifndef __RTDEBUG_H__ #ifndef __RTDEBUG_H__
#define __RTDEBUG_H__ #define __RTDEBUG_H__
#include <rtconfig.h>
/* Using this macro to control all kernel debug features. */ /* Using this macro to control all kernel debug features. */
#ifdef RT_DEBUG #ifdef RT_DEBUG
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#ifndef __RT_DEF_H__ #ifndef __RT_DEF_H__
#define __RT_DEF_H__ #define __RT_DEF_H__
#include <rtconfig.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
...@@ -31,8 +31,9 @@ ...@@ -31,8 +31,9 @@
#ifndef __RT_THREAD_H__ #ifndef __RT_THREAD_H__
#define __RT_THREAD_H__ #define __RT_THREAD_H__
#include <rtdef.h> #include <rtconfig.h>
#include <rtdebug.h> #include <rtdebug.h>
#include <rtdef.h>
#include <rtservice.h> #include <rtservice.h>
#include <rtm.h> #include <rtm.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册