diff options
author | DichenZhang1 <140119224+DichenZhang1@users.noreply.github.com> | 2023-11-09 13:13:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 13:13:12 -0800 |
commit | 441720935dba5a567c726c2a4a83039118170902 (patch) | |
tree | 9ac563a1ff71683d435db83c3fe6552157eb8181 | |
parent | 77dfb1591c60b4ec9b763a98c683287ec39b43a9 (diff) | |
download | libultrahdr-441720935dba5a567c726c2a4a83039118170902.tar.gz |
Fix big/little endian ambiguity
-rw-r--r-- | lib/icc.h | 2 | ||||
-rw-r--r-- | lib/multipictureformat.h | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -23,6 +23,8 @@ #define USE_BIG_ENDIAN_IN_ICC true #endif +#undef Endian_SwapBE32 +#undef Endian_SwapBE16 #if USE_BIG_ENDIAN_IN_ICC #define Endian_SwapBE32(n) EndianSwap32(n) #define Endian_SwapBE16(n) EndianSwap16(n) diff --git a/lib/multipictureformat.h b/lib/multipictureformat.h index 06ad6ae..888f233 100644 --- a/lib/multipictureformat.h +++ b/lib/multipictureformat.h @@ -23,6 +23,8 @@ #define USE_BIG_ENDIAN_IN_MPF true #endif +#undef Endian_SwapBE32 +#undef Endian_SwapBE16 #if USE_BIG_ENDIAN_IN_MPF #define Endian_SwapBE32(n) EndianSwap32(n) #define Endian_SwapBE16(n) EndianSwap16(n) |