Add SDL_FLOATWORDORDER for older ARM toolchains

This commit is contained in:
Cameron Cawley
2022-05-03 23:21:10 +01:00
committed by Sam Lantinga
parent adac3bd1e2
commit b398a847be
4 changed files with 66 additions and 1 deletions

View File

@@ -66,9 +66,10 @@ typedef unsigned int u_int32_t;
* Math on arm is special:
* For FPA, float words are always big-endian.
* For VFP, floats words follow the memory system mode.
* For Maverick, float words are always little-endian.
*/
#if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
#if (SDL_FLOATWORDORDER == SDL_BIG_ENDIAN)
typedef union
{