Avoid clash with system's htole32 if it exists.

Fix build on FreeBSD.

Reported by:    Ganael Laplanche
This commit is contained in:
Romain Tartière 2013-05-20 17:02:24 +02:00
parent c1db25c05b
commit 0a5199a737

View file

@ -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)
{