[Kernel] include finsh.h file in rtthread.h when RT_USING_FINSH enable
This commit is contained in:
parent
44def114fb
commit
15fa3084c3
|
@ -563,6 +563,10 @@ void rt_assert_set_hook(void (*hook)(const char *ex, const char *func, rt_size_t
|
||||||
void rt_assert_handler(const char *ex, const char *func, rt_size_t line);
|
void rt_assert_handler(const char *ex, const char *func, rt_size_t line);
|
||||||
#endif /* RT_DEBUG */
|
#endif /* RT_DEBUG */
|
||||||
|
|
||||||
|
#ifdef RT_USING_FINSH
|
||||||
|
#include <finsh.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -141,7 +141,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||||
env['LIBDIRPREFIX'] = '--userlibpath '
|
env['LIBDIRPREFIX'] = '--userlibpath '
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM == 'gcc':
|
||||||
if env['LINKFLAGS'].find('nano.specs'):
|
if str(env['LINKFLAGS']).find('nano.specs'):
|
||||||
env.AppendUnique(CPPDEFINES = ['_REENT_SMALL'])
|
env.AppendUnique(CPPDEFINES = ['_REENT_SMALL'])
|
||||||
|
|
||||||
# patch for win32 spawn
|
# patch for win32 spawn
|
||||||
|
|
Loading…
Reference in New Issue