diff options
| author | prife <[email protected]> | 2014-01-11 16:37:13 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2014-01-11 16:50:53 +0800 |
| commit | 86cdc22043d4f765aa2ad289fac09aca518fe525 (patch) | |
| tree | 3f6458b42abc237a39d40c6b98b238192f504ddc /include | |
| parent | c07a78ae005b9e41801f1d7f8e90a37d4d7f4449 (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdebug.h | 4 | ||||
| -rw-r--r-- | include/rtdef.h | 2 | ||||
| -rw-r--r-- | 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 <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 */ 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 <rtconfig.h> - #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 <rtdef.h> +#include <rtconfig.h> #include <rtdebug.h> +#include <rtdef.h> #include <rtservice.h> #include <rtm.h> |
