From da4938d6eed9c1c29e389e9a1de6a599d365fe09 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 30 Aug 2014 01:08:34 -0400 Subject: Get the last errors I hope! Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341 --- lib/rbcodec/rbcodecplatform-unix.h | 8 -------- lib/rbcodec/test/SOURCES | 2 +- lib/rbcodec/test/file.h | 4 ++++ lib/rbcodec/test/warble.c | 7 +++++++ 4 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 lib/rbcodec/test/file.h (limited to 'lib') diff --git a/lib/rbcodec/rbcodecplatform-unix.h b/lib/rbcodec/rbcodecplatform-unix.h index 5e65be3..4ed25f4 100644 --- a/lib/rbcodec/rbcodecplatform-unix.h +++ b/lib/rbcodec/rbcodecplatform-unix.h @@ -50,15 +50,7 @@ #endif /* filesize */ -#include off_t filesize(int fd); -/* -static inline off_t filesize(int fd) { - struct stat st; - fstat(fd, &st); - return st.st_size; -} -*/ /* snprintf */ #include diff --git a/lib/rbcodec/test/SOURCES b/lib/rbcodec/test/SOURCES index d1413c7..7afee84 100644 --- a/lib/rbcodec/test/SOURCES +++ b/lib/rbcodec/test/SOURCES @@ -2,4 +2,4 @@ warble.c ../../../firmware/common/strlcpy.c ../../../firmware/common/unicode.c ../../../firmware/common/structec.c -../../../uisimulator/common/io.c +../../../firmware/common/pathfuncs.c diff --git a/lib/rbcodec/test/file.h b/lib/rbcodec/test/file.h new file mode 100644 index 0000000..b673fa8 --- /dev/null +++ b/lib/rbcodec/test/file.h @@ -0,0 +1,4 @@ +#undef MAX_PATH +#define MAX_PATH 260 +#include +#include diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index 6c8442a..8f11b9b 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c @@ -77,6 +77,13 @@ int find_first_set_bit(uint32_t value) return __builtin_ctz(value); } +off_t filesize(int fd) +{ + struct stat st; + fstat(fd, &st); + return st.st_size; +} + /***************** INTERNAL *****************/ static enum { MODE_PLAY, MODE_WRITE } mode; -- cgit v1.1