Browse Source

[Kernel] Fix the compiling issue for not including rtconfig.h file in rtdebug.h/rtdef.h

bernard 11 năm trước cách đây
mục cha
commit
8fdbb7c92b
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      include/rtdebug.h
  2. 2 0
      include/rtdef.h

+ 2 - 0
include/rtdebug.h

@@ -21,6 +21,8 @@
 #ifndef __RTDEBUG_H__
 #define __RTDEBUG_H__
 
+#include <rtconfig.h>
+
 /* Using this macro to control all kernel debug features. */
 #ifdef RT_DEBUG
 

+ 2 - 0
include/rtdef.h

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