From 4a5ea9e237bab5301b6c92fc1517b97aa12546b1 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 17 May 2010 14:52:27 +0000 Subject: [PATCH] Add exit() function just to prevent loads of the standard library from being included in the build. --- Demo/CORTUS_APS3_GCC/Demo/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Demo/CORTUS_APS3_GCC/Demo/main.c b/Demo/CORTUS_APS3_GCC/Demo/main.c index 562ec4f19..093bac967 100644 --- a/Demo/CORTUS_APS3_GCC/Demo/main.c +++ b/Demo/CORTUS_APS3_GCC/Demo/main.c @@ -284,5 +284,11 @@ void vApplicationMallocFailedHook( void ) } /*-----------------------------------------------------------*/ +/* Provide an exit function to prevent a whole load of standard library functions +being brought into the build. */ +void exit( int status ) +{ + for( ;; ); +}