summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-01-11 03:58:10 -0800
committerBernard Xiong <[email protected]>2014-01-11 03:58:10 -0800
commit97508eb48e33d978072b6ee12f38fdac4fa34ea1 (patch)
tree21db1a7fb5e7aae8094482025ee1b3b430605470 /include
parent2188d0600331ccd4478e8fcab527329c0b071165 (diff)
parent86cdc22043d4f765aa2ad289fac09aca518fe525 (diff)
Merge pull request #228 from prife/kernel
kernel: rearrange the header file include order
Diffstat (limited to 'include')
-rw-r--r--include/rtdebug.h4
-rw-r--r--include/rtdef.h2
-rw-r--r--include/rtthread.h3
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 3c91ae7d8d..7cd35c7f8c 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 7704abf208..f53c7b95b8 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>