Avoid clash with system's htole32 if it exists.
Fix build on FreeBSD. Reported by: Ganael Laplanche
This commit is contained in:
parent
c1db25c05b
commit
0a5199a737
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue