Added extern "C" wrapper around C call-back functions

This commit is contained in:
Alex Shepherd
2015-09-27 09:36:25 +13:00
parent e19dd605c4
commit 8f6fbdead1

View File

@@ -155,6 +155,14 @@ class NmraDcc
};
/************************************************************************************
Call-back functions
************************************************************************************/
#if defined (__cplusplus)
extern "C" {
#endif
extern void notifyDccReset(uint8_t hardReset ) __attribute__ ((weak));
extern void notifyDccIdle(void) __attribute__ ((weak));
@@ -175,4 +183,9 @@ extern void notifyCVChange( uint16_t CV, uint8_t Value) __attribute__ ((weak)
extern void notifyCVResetFactoryDefault(void) __attribute__ ((weak));
extern void notifyCVAck(void) __attribute__ ((weak));
#if defined (__cplusplus)
}
#endif
#endif