ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / ivorbis-tools / oggdec-endian.patch
blobdba7d9f6680706de0968edac76964cb2e906fd46
1 --- ivorbis-tools/oggdec/oggdec.c.orig 2007-05-07 22:26:02.000000000 +0200
2 +++ ivorbis-tools/oggdec/oggdec.c 2007-05-07 22:27:11.000000000 +0200
3 @@ -12,6 +12,7 @@
4 #include <getopt.h>
5 #include <errno.h>
6 #include <string.h>
7 +#include <endian.h>
9 #if defined(_WIN32) || defined(__EMX__) || defined(__WATCOMC__)
10 #include <fcntl.h>
11 @@ -233,6 +234,7 @@
12 continue;
15 +#ifdef BIG_ENDIAN
16 { /* byteswap */
17 int i;
18 char tmp_char;
19 @@ -242,6 +244,7 @@
20 buf[i+1] = tmp_char;
23 +#endif
25 if(fwrite(buf, 1, ret, out) != ret) {
26 fprintf(stderr, "Error writing to file: %s\n", strerror(errno));