Skip to content

Commit 8c00fa3

Browse files
authored
Merge pull request #4036 from yangjie11/master
[src] add a __RTTHREAD__ global macro definition
2 parents e1e585a + b082c91 commit 8c00fa3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SConscript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ if GetDepend('RT_USING_DEVICE') == False:
2929
if GetDepend('RT_USING_SMP') == False:
3030
SrcRemove(src, ['cpu.c'])
3131

32-
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH)
32+
CPPDEFINES = ['__RTTHREAD__']
33+
34+
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
3335

3436
Return('group')

0 commit comments

Comments
 (0)