Add missing extern "C" to header files (closes #104)

This commit is contained in:
Luke Wren
2021-02-09 14:47:16 +00:00
committed by Graham Sanderson
parent 32ada8a2de
commit b34995a549
11 changed files with 85 additions and 0 deletions

View File

@ -28,6 +28,9 @@
* \include hello_rtc.c
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*rtc_callback_t)(void);
@ -71,4 +74,8 @@ void rtc_set_alarm(datetime_t *t, rtc_callback_t user_callback);
*/
void rtc_disable_alarm(void);
#ifdef __cplusplus
}
#endif
#endif