Skip to content

Commit

Permalink
Merge pull request #13 from kotl/master
Browse files Browse the repository at this point in the history
Fix compilation error for ESP8266
  • Loading branch information
rweather committed Dec 4, 2016
2 parents 6d71947 + a468341 commit 1281350
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/Crypto/utility/ProgMemUtil.h
Expand Up @@ -25,6 +25,14 @@

#if defined(__AVR__)
#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) \
(__extension__ ({ \
const uint32_t *_temp = (const uint32_t *)(x); \
Expand Down

0 comments on commit 1281350

Please sign in to comment.