X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=81ccf9f1abb337b5947804d823bba2469baaeeaf;hb=91f07304c9e9687652450f53938d76e1f60ddf76;hp=afee79cea465575f8f8b55b40359532e5e935850;hpb=e7ff92be04fbf177d03f290d689dfd93289607b9;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index afee79c..81ccf9f 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -26,7 +26,15 @@ #define TRUE (1) #endif #ifndef FALSE -#define FALSE (1) +#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