From a878149663b8c2ff2a9980bbb84550a61daa9b35 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 18 May 2012 16:06:46 +0000 Subject: [PATCH] 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 --- libfreefare/freefare_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/freefare_internal.h b/libfreefare/freefare_internal.h index 9474adf..0425bb5 100644 --- a/libfreefare/freefare_internal.h +++ b/libfreefare/freefare_internal.h @@ -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; \