From ee46a3d88e8378e58f01ff0d521477ba0b7201fb Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 15 Dec 2008 23:42:19 +0000 Subject: Moved database builder into a separate directory, and gave it its' own Makefile. Now it compiles cleanly and builds a database if ran in root of music tree. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19448 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/unicode.c | 5 ++--- firmware/include/time.h | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'firmware') diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index 713a8e70f9..61989e5ab0 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c @@ -83,9 +83,8 @@ static const char *name_codepages[NUM_CODEPAGES+1] = #define MAX_CP_TABLE_SIZE 640 #define NUM_TABLES 1 -static const char *filename[NUM_TABLES] = -{ - CODEPAGE_DIR"/isomini.cp", +static const char *filename[NUM_TABLES] = { + CODEPAGE_DIR"/isomini.cp" }; static const char cp_2_table[NUM_CODEPAGES] = diff --git a/firmware/include/time.h b/firmware/include/time.h index 9200e82232..9010d99cc2 100644 --- a/firmware/include/time.h +++ b/firmware/include/time.h @@ -37,6 +37,13 @@ struct tm *localtime(const time_t *timep); #endif /* SIMULATOR */ +#ifdef __PCTOOL__ +/* this time.h does not define struct timespec, + so tell sys/stat.h not to use it */ +#undef __USE_MISC +#endif + + #endif /* _TIME_H_ */ -- cgit v1.2.3