diff --git a/bsp/simulator/application.c b/bsp/simulator/application.c index 8151684091..7bbe6f4cb9 100644 --- a/bsp/simulator/application.c +++ b/bsp/simulator/application.c @@ -91,7 +91,12 @@ int rt_application_init() return 0; } -#include +#ifndef _CRT_TERMINATE_DEFINED +#define _CRT_TERMINATE_DEFINED +_CRTIMP __declspec(noreturn) void __cdecl exit(__in int _Code); +_CRTIMP __declspec(noreturn) void __cdecl _exit(__in int _Code); +_CRTIMP void __cdecl abort(void); +#endif void rt_hw_exit(void) { rt_kprintf("RT-Thread, bye\n"); diff --git a/bsp/simulator/vs2005.vcproj b/bsp/simulator/vs2005.vcproj index 7bd64324a9..55c3413165 100644 --- a/bsp/simulator/vs2005.vcproj +++ b/bsp/simulator/vs2005.vcproj @@ -40,7 +40,7 @@