X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=81ccf9f1abb337b5947804d823bba2469baaeeaf;hb=045aa1a089fc49ab5b947d48c3a0d4c8b01452bc;hp=d619aeb1db7d94838809b5f55645c1a340ac30c8;hpb=b3bf5bf6cdf7d80df45de711b079ce3544acd39f;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index d619aeb..81ccf9f 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -22,6 +22,21 @@ #define DEBUG_RFXSWF +#ifndef TRUE +#define TRUE (1) +#endif +#ifndef FALSE +#define FALSE (0) +#endif + +#ifdef WORDS_BIGENDIAN +#define SWAP16(s) ((U16) ((U8*)&s)[0] | ((U16) ((U8*)&s)[1] << 8)) +#define SWAP32(s) ((U32) ((U8*)&s)[0] | ((U32) ((U8*)&s)[1] << 8) | ((U32) ((U8*)&s)[2] << 16) | ((U32) ((U8*)&s)[3] << 24)) +#else +#define SWAP16(x) x +#define SWAP32(x) x +#endif + // SWF Types typedef unsigned long U32;