mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +00:00
Avoid clash with system's htole32 if it exists.
Fix build on FreeBSD. Reported by: Ganael Laplanche
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user