1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Fix compilation error for ESP8266

This commit is contained in:
Sergei Kotlyachkov 2016-11-28 20:08:48 -05:00
parent 6d71947476
commit a4683416ff

View File

@ -25,6 +25,14 @@
#if defined(__AVR__) #if defined(__AVR__)
#include <avr/pgmspace.h> #include <avr/pgmspace.h>
#define pgm_read_qword(x) \
(__extension__ ({ \
const uint32_t *_temp = (const uint32_t *)(x); \
((uint64_t)pgm_read_dword(_temp)) | \
(((uint64_t)pgm_read_dword(_temp + 1)) << 32); \
}))
#elif defined(ESP8266)
#include <pgmspace.h>
#define pgm_read_qword(x) \ #define pgm_read_qword(x) \
(__extension__ ({ \ (__extension__ ({ \
const uint32_t *_temp = (const uint32_t *)(x); \ const uint32_t *_temp = (const uint32_t *)(x); \