Fixed minor problem with C++.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@15595 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-04-24 06:36:50 +00:00 committed by Andrey
parent ff307bbcc5
commit 2a53ef2614
1 changed files with 4 additions and 6 deletions

View File

@ -214,12 +214,10 @@ int _getpid(void) {
abort(); abort();
} }
#ifdef __cplusplus /***************************************************************************/
extern "C" { /* Only used in C++ mode.*/
void __cxa_pure_virtual(void) { void __cxa_pure_virtual(void) {
osalSysHalt("Pure virtual function call."); chSysHalt("pure virtual");
}
} }
#endif
/*** EOF ***/ /*** EOF ***/