| Summary: | SDL_BYTEORDER is not defined to one of SDL_LIL_ENDIAN or SDL_BIG_ENDIAN on linux | ||
|---|---|---|---|
| Product: | SDL | Reporter: | stepik-777 |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
My mistake. I had a bogus <endian.h>. |
#include <SDL2/SDL.h> #if (SDL_BYTEORDER != SDL_LIL_ENDIAN) && (SDL_BYTEORDER != SDL_BIG_ENDIAN) #error This is probably because it is defined to __BYTE_ORDER in SDL_endian.h: #ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ #ifdef __linux__ #include <endian.h> #define SDL_BYTEORDER __BYTE_ORDER #else /* __linux __ */