Skip to content

Commit

Permalink
Merge pull request #813 from basilgello/ppc64el-fix-upstream
Browse files Browse the repository at this point in the history
fix endian detection to be portable to all gcc archs
  • Loading branch information
barbibulle committed Nov 21, 2022
2 parents c3b666f + ff75cbb commit f1528f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/C++/Core/Ap4Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#if defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64)
#define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN
#endif
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__)
#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN
#endif
#endif
Expand Down

0 comments on commit f1528f6

Please sign in to comment.