Skip to content

Commit 8cd1767

Browse files
committed
Fix GCC 4.x compilation error
1 parent fe46adc commit 8cd1767

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RT-Thread
2-
version=0.9.3
2+
version=0.9.4
33
author=onelife <[email protected]>, Bernard Xiong <[email protected]>
44
maintainer=onelife <[email protected]>
55
sentence=Real Time Operating System porting for Arduino SAM and SAMD boards

src/rtconfig.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,10 @@
500500

501501
/* User provided config */
502502

503-
#if __has_include("rtconfig_extra.h")
504-
# include "rtconfig_extra.h"
503+
#if defined __has_include
504+
# if __has_include("rtconfig_extra.h")
505+
# include "rtconfig_extra.h"
506+
# endif
505507
#endif
506508

507509
#endif /* __RTCONFIG_H__ */

src/shell_cmd.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ ADD_MSH_CMD(prtscn, capture screen, prtscn, int, int argc, char **argv)
109109
# endif
110110
#endif
111111

112-
#if __has_include("user_cmd.h")
113-
# include "user_cmd.h"
112+
#if defined __has_include
113+
# if __has_include("user_cmd.h")
114+
# include "user_cmd.h"
115+
# endif
114116
#endif
115117

116118

0 commit comments

Comments
 (0)