Fixed minor problem with C++.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15595 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-04-24 06:36:50 +00:00
parent 23ac58da10
commit f56e148d32
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"); chSysHalt("pure virtual");
} }
}
#endif
/*** EOF ***/ /*** EOF ***/