diff src/alac/stream.c @ 57:96901271d2e2 trunk

[svn] - fix crashing. works on my x64 box, static on bigendian (tested: x64-be, mips, ppc64)
author nenolod
date Sat, 30 Sep 2006 20:58:51 -0700
parents 56c88eee9802
children 74df3bd6f472
line wrap: on
line diff
--- a/src/alac/stream.c	Sat Sep 30 19:26:34 2006 -0700
+++ b/src/alac/stream.c	Sat Sep 30 20:58:51 2006 -0700
@@ -50,18 +50,14 @@
                    v = (((v) & 0x00FF) << 0x08) | \
                        (((v) & 0xFF00) >> 0x08); } while (0)
 
-#ifdef WORDS_BIGENDIAN
-int host_bigendian = 1;
-#else
-int host_bigendian = 0;
-#endif
-
 struct stream_tTAG {
     VFSFile *f;
     int bigendian;
     int eof;
 };
 
+extern int host_bigendian;
+
 void stream_read(stream_t *stream, size_t size, void *buf)
 {
     size_t ret;