Fix compile warnings and errors
Change-Id: I30a9299390cef302a8d3e61b6aa6e38731be1529
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
diff --git a/Tremolo/bitwise.c b/Tremolo/bitwise.c
index 3f1be7a..2182641 100644
--- a/Tremolo/bitwise.c
+++ b/Tremolo/bitwise.c
@@ -214,7 +214,7 @@
/* Read in bits without advancing the bitptr; bits <= 32 */
long oggpack_look(oggpack_buffer *b,int bits){
unsigned long m=mask[bits];
- unsigned long ret;
+ unsigned long ret = 0;
int BITS = bits;
bits+=b->headbit;
diff --git a/Tremolo/os_types.h b/Tremolo/os_types.h
index b08d0ce..315227c 100644
--- a/Tremolo/os_types.h
+++ b/Tremolo/os_types.h
@@ -117,6 +117,7 @@
# include <sys/types.h>
# include "config_types.h"
+# include <endian.h>
#endif