Fix compiler warning

freefare_internal.h:359:5: warning: "_BYTE_ORDER" is not defined
freefare_internal.h:359:20: warning: "_LITTLE_ENDIAN" is not defined
This commit is contained in:
Ludovic Rousseau 2012-05-18 16:06:46 +00:00
parent f0a1247693
commit a878149663

View file

@ -356,7 +356,7 @@ struct mifare_ultralight_tag {
* 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) \
do { \
size_t __data_size = data_size; \