Fix htole32 issue

This commit is contained in:
Bjoern Kerler 2020-06-13 17:16:17 +02:00
commit 9a07c06596

View file

@ -897,6 +897,10 @@ desfire_crc32_byte(uint32_t *crc, const uint8_t value) {
} }
} }
#ifndef htole32
#define htole32(x) (x)
#endif
void desfire_crc32(const uint8_t *data, const size_t len, uint8_t *crc) { void desfire_crc32(const uint8_t *data, const size_t len, uint8_t *crc) {
uint32_t desfire_crc = CRC32_PRESET; uint32_t desfire_crc = CRC32_PRESET;
for (size_t i = 0; i < len; i++) { for (size_t i = 0; i < len; i++) {