Skip to content

Commit 554233f

Browse files
committed
add prototypes for ets_vsnprintf and ets_vprintf
fix some compiler warnings
1 parent 41569d3 commit 554233f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cores/esp8266/pgmspace.h

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
#ifndef __PGMSPACE_H_
22
#define __PGMSPACE_H_
33

4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
47
#include <stdint.h>
8+
#include <stdio.h>
9+
#include "ets_sys.h"
10+
#include "osapi.h"
11+
#ifdef __cplusplus
12+
}
13+
#endif
514

615
#define PROGMEM
716
#define PGM_P const char *
817
#define PSTR(str) (str)
918

10-
#define vsnprintf_P(...) vsnprintf( __VA_ARGS__ )
19+
#define vsnprintf_P(...) ets_vsnprintf( __VA_ARGS__ )
1120
#define snprintf_P(...) snprintf( __VA_ARGS__ )
21+
#define printf_P(...) os_printf(__VA_ARGS__)
1222

1323
#define _SFR_BYTE(n) (n)
1424

0 commit comments

Comments
 (0)