mirror of https://github.com/xiph/flac
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.
This commit is contained in:
parent
229f4f45df
commit
97dbae1800
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue