Merge pull request #979 from capitalistspz/ppcdef
Some checks failed
CI / Bento4 Build ${{ matrix.os }} (-DCMAKE_BUILD_TYPE=Release, x86_64-microsoft-win32, py, windows-latest) (push) Has been cancelled
CI / Bento4 Build ${{ matrix.os }} (-DCMAKE_BUILD_TYPE=Release, x86_64-unknown-linux, python3, ubuntu-latest) (push) Has been cancelled
CI / Bento4 Build ${{ matrix.os }} (-G Xcode, universal-apple-macosx, python3, macos-latest) (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

Check `__PPC__` and `__PPC` macros
This commit is contained in:
Gilles Boccon-Gibod 2024-09-09 06:10:10 -07:00 committed by GitHub
commit 725caa5988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@
#define AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 1
#if !defined(AP4_PLATFORM_BYTE_ORDER)
#if defined(__ppc__) || defined(__powerpc__)
#if defined(__ppc__) || defined(__powerpc__) || defined(__PPC__) || defined(__PPC)
#define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_BIG_ENDIAN
#elif defined(_MSC_VER)
#if defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64)