From a14ec0cbaa5490018d5c9bc60d575b6eb43644cc Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 13 May 2012 15:11:28 +0000 Subject: [PATCH] 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 --- libnfc/nfc-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/nfc-internal.h b/libnfc/nfc-internal.h index ec9e2fc..372e79c 100644 --- a/libnfc/nfc-internal.h +++ b/libnfc/nfc-internal.h @@ -108,7 +108,7 @@ * 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; \