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 - SDL_BYTEORDER is not defined to one of SDL_LIL_ENDIAN or SDL_BIG_ENDIAN on linux
Summary: SDL_BYTEORDER is not defined to one of SDL_LIL_ENDIAN or SDL_BIG_ENDIAN on linux
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.0
Hardware: All Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-30 22:14 UTC by stepik-777
Modified: 2013-09-30 22:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>.