3 --- plugins/titler/title.C.orig 2010-02-01 08:26:24.000000000 +0000
4 +++ plugins/titler/title.C
12 #include "mwindow.inc"
13 #include "picon_png.h"
19 -#include <byteswap.h>
23 +#define bswap_32(x) ((((x) << 24) & 0xff000000) | \
24 + (((x) << 8) & 0x00ff0000) | \
25 + (((x) >> 8) & 0x0000ff00) | \
26 + (((x) >> 24) & 0x000000ff))
28 #define ZERO (1.0 / 64.0)
30 #define FONT_SEARCHPATH "fonts"
31 @@ -1517,14 +1522,15 @@ void TitleMain::draw_glyphs()
33 size_t inbytes,outbytes;
35 - char *inp = (char*)&inbuf, *outp = (char *)&char_code;
36 + const char *inp = &inbuf;
37 + char *outp = (char *)&char_code;
43 iconv (cd, &inp, &inbytes, &outp, &outbytes);
44 -#if __BYTE_ORDER == __LITTLE_ENDIAN
45 +#if !defined(WORDS_BIGENDIAN)
46 char_code = bswap_32(char_code);
47 #endif /* Big endian. */