We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2124

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   

Description stepik-777 2013-09-30 22:14:51 UTC
#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 __ */
Comment 1 stepik-777 2013-09-30 22:39:15 UTC
My mistake. I had a bogus <endian.h>.