diff -bur swftools-0.7.0/lib/png.c swftools-0.7.0-osx/lib/png.c --- swftools-0.7.0/lib/png.c 2005-04-07 10:19:43.000000000 +0200 +++ swftools-0.7.0-osx/lib/png.c 2006-02-28 01:05:44.000000000 +0100 @@ -23,6 +23,7 @@ #include #include #include "png.h" +#include "../config.h" typedef unsigned char U8; typedef unsigned long U32; @@ -30,8 +31,13 @@ U8 a,r,g,b; } COL; +#ifdef WORDS_BIGENDIAN +#define REVERSESWAP16(s) (s) +#define REVERSESWAP32(s) (s) +#else #define REVERSESWAP16(s) ((((s)>>8)&0x00ff)|(((s)<<8)&0xff00)) #define REVERSESWAP32(s) (REVERSESWAP16(((s)>>16)&0x0000ffff)|((REVERSESWAP16(s)<<16)&0xffff0000)) +#endif int png_read_chunk(char (*head)[4], int*destlen, U8**destdata, FILE*fi) {