Commit 0a5199a7 authored by Romain Tartière's avatar Romain Tartière

Avoid clash with system's htole32 if it exists.

Fix build on FreeBSD.

Reported by:    Ganael Laplanche
parent c1db25c0
......@@ -515,6 +515,8 @@ acr122_usb_close(nfc_device *pnd)
nfc_device_free(pnd);
}
#if !defined(htole32)
uint32_t htole32(uint32_t u32);
uint32_t
......@@ -529,6 +531,8 @@ htole32(uint32_t u32)
return *pu32;
}
#endif /* !defined(htole32) */
static int
acr122_build_frame_from_apdu(nfc_device *pnd, const uint8_t ins, const uint8_t p1, const uint8_t p2, const uint8_t *data, const size_t data_len, const uint8_t le)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment