SDL library header issue

Michael_google gmail_Gersten keybounce at gmail.com
Sat May 22 12:20:43 PDT 2010


>> Manually commenting out that hard-coded BYTEORDER line, so that the
>> system determines it at compile time? That seems to be a workaround.
>
> Does that happen? I would have expected we'd need to define SDL_BYTEORDER correctly in the config file.

Ya think? Look at this:

SDL_endian.h:

...
/** @name SDL_ENDIANs
 *  The two types of endianness
 */
/*@{*/
#define SDL_LIL_ENDIAN  1234
#define SDL_BIG_ENDIAN  4321
/*@}*/

#ifndef SDL_BYTEORDER   /* Not defined in SDL_config.h? */
#if defined(__hppa__) || \
    defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
    (defined(__MIPS__) && defined(__MISPEB__)) || \
    defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
    defined(__sparc__)
#define SDL_BYTEORDER   SDL_BIG_ENDIAN
#else
...

So yea, removing the definition allowed it to compile correctly.

-- 
Political and economic blog of a strict constitutionalist
http://StrictConstitution.BlogSpot.com


More information about the macports-users mailing list