summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-09-15 07:17:18 +0200
committerGitHub <noreply@github.com>2022-09-15 07:17:18 +0200
commit97dbae1800413a66bf2dd92b8ccb2eab69bfa492 (patch)
tree033a96fd46090480181188659c8f7da02b04c92a
parent229f4f45df72ac1fc8a2f7749043223d745c8e27 (diff)
downloadflac-97dbae1800413a66bf2dd92b8ccb2eab69bfa492.tar.gz
Fix endianness display in endswap test (cosmetic issue)
As CPU_IS_LITTLE_ENDIAN is used nowehere except in test_libflac, switch to CPU_IS_BIG_ENDIAN instead, which is actually used in the code at several places. CMake didn't set the former but does set the latter.
-rw-r--r--config.cmake.h.in3
-rw-r--r--src/test_libFLAC/endswap.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/config.cmake.h.in b/config.cmake.h.in
index 04f8d6cb..32da7005 100644
--- a/config.cmake.h.in
+++ b/config.cmake.h.in
@@ -6,9 +6,6 @@
/* Target processor is big endian. */
#cmakedefine01 CPU_IS_BIG_ENDIAN
-/* Target processor is little endian. */
-#cmakedefine01 CPU_IS_LITTLE_ENDIAN
-
/* Target processor ARM64 */
#cmakedefine FLAC__CPU_ARM64
diff --git a/src/test_libFLAC/endswap.c b/src/test_libFLAC/endswap.c
index 9b65afaa..d569197d 100644
--- a/src/test_libFLAC/endswap.c
+++ b/src/test_libFLAC/endswap.c
@@ -43,7 +43,7 @@ FLAC__bool test_endswap(void)
uint32_t u32;
} data;
- printf("\n+++ libFLAC unit test: endswap (%s endian host)\n\n", CPU_IS_LITTLE_ENDIAN ? "little" : "big");
+ printf("\n+++ libFLAC unit test: endswap (%s endian host)\n\n", CPU_IS_BIG_ENDIAN ? "big" : "little");
printf("testing ENDSWAP_16 on int16_t ... ");
if (((int16_t) ENDSWAP_16(i16)) == i16) {