core headers: Add C++ linker compatibility

This commit is contained in:
Angus Gratton 2015-10-05 18:33:32 +11:00
parent 65307aed75
commit afd58bc1ff
5 changed files with 39 additions and 2 deletions

View file

@ -7,6 +7,10 @@
#ifndef _ESP_TIMER_PRIVATE_H
#define _ESP_TIMER_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
@ -255,6 +259,8 @@ INLINED bool timer_set_timeout(const timer_frc_t frc, uint32_t us)
return _timer_set_timeout_runtime(frc, us);
}
#ifdef __cplusplus
}
#endif
#endif