Fix compiler warnings:
In file included from nfc-internal.c:26: nfc-internal.h:111:5: warning: "_BYTE_ORDER" is not defined nfc-internal.h:111:20: warning: "_LITTLE_ENDIAN" is not defined
This commit is contained in:
parent
b9e5e96e49
commit
a14ec0cbaa
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@
|
||||||
* BUFFER_APPEND_LE (buffer, data, 3, 4);
|
* BUFFER_APPEND_LE (buffer, data, 3, 4);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if _BYTE_ORDER != _LITTLE_ENDIAN
|
#if defined(_BYTE_ORDER) && (_BYTE_ORDER != _LITTLE_ENDIAN)
|
||||||
#define BUFFER_APPEND_LE(buffer, data, data_size, field_size) \
|
#define BUFFER_APPEND_LE(buffer, data, data_size, field_size) \
|
||||||
do { \
|
do { \
|
||||||
size_t __data_size = data_size; \
|
size_t __data_size = data_size; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue