1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Extern C blocks (#1352) (#4044)

* Add extern C guard blocks to SDK header files #1352

* fixed some extern C blocks in core and libraries
This commit is contained in:
Develo
2017-12-30 02:03:26 -03:00
committed by GitHub
parent 1cd4a00cff
commit a2d16f38d4
21 changed files with 165 additions and 11 deletions

View File

@ -28,6 +28,10 @@
#include <string.h>
#include "user_config.h"
#ifdef __cplusplus
extern "C" {
#endif
#define os_bzero ets_bzero
#define os_delay_us ets_delay_us
#define os_install_putc1 ets_install_putc1
@ -77,5 +81,10 @@ extern int os_printf_plus(const char * format, ...) __attribute__ ((format (prin
unsigned long os_random(void);
int os_get_random(unsigned char *buf, size_t len);
#ifdef __cplusplus
}
#endif
#endif