File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ extern "C" void __iar_argc_argv() {
563
563
// Provide implementation of _sbrk (low-level dynamic memory allocation
564
564
// routine) for GCC_ARM which compares new heap pointer with MSP instead of
565
565
// SP. This make it compatible with RTX RTOS thread stacks.
566
- #if defined(TOOLCHAIN_GCC_ARM)
566
+ #if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
567
567
// Linker defined symbol used by _sbrk to indicate where heap should start.
568
568
extern " C" int __end__;
569
569
@@ -614,7 +614,7 @@ extern "C" caddr_t _sbrk(int incr) {
614
614
#endif
615
615
#endif
616
616
617
- #if defined TOOLCHAIN_GCC_ARM
617
+ #if defined( TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
618
618
extern " C" void _exit (int return_code) {
619
619
#else
620
620
namespace std {
@@ -638,7 +638,7 @@ extern "C" void exit(int return_code) {
638
638
while (1 );
639
639
}
640
640
641
- #if !defined(TOOLCHAIN_GCC_ARM)
641
+ #if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CR)
642
642
} // namespace std
643
643
#endif
644
644
You can’t perform that action at this time.
0 commit comments