This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 366 for ps


Ignore:
Timestamp:
06/02/04 19:40:43 (21 years ago)
Author:
janwas
Message:

fixed incorrect endian detect macro

Location:
ps/trunk/source/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/lib.h

    r364 r366  
    2525
    2626#include "sysdep/sysdep.h"
     27
     28#include "sdl.h"    // for endian stuff
    2729
    2830
     
    144146// VC6/7 don't realize the macro is constant
    145147// (it should be useable as a switch{} expression)
    146 #if __BYTE_ORDER == __BIG_ENDIAN
     148#if SDL_BYTE_ORDER == SDL_BIG_ENDIAN
    147149#define FOURCC(a,b,c,d) ( ((u32)a << 24) | ((u32)b << 16) | \
    148150    ((u32)c << 8 ) | ((u32)d << 0 ) )
  • ps/trunk/source/lib/sysdep/win/wsdl.h

    r329 r366  
    128128#endif
    129129
     130#define SDL_LIL_ENDIAN 1234
     131#define SDL_BIG_ENDIAN 4321
     132
     133#define SDL_BYTE_ORDER SDL_LIL_ENDIAN
    130134
    131135//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.