diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-11-10 08:03:33 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-11-10 08:03:33 +0000 |
commit | 0dd7ea2d712944b21ede9f57bebd1009b03932e6 (patch) | |
tree | dc6065067aa862cc6a71c206b67554270fe507bd /firmware/export | |
parent | ae221f140231cb2fd4833443d7810dfce03c606a (diff) |
Support building tagcache db natively on PC using the core of the
Rockbox tagcache database engine. Only host endian support at the
moment and no command line parameters. Mainly for developers for
debugging at the moment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/debug.h | 2 | ||||
-rw-r--r-- | firmware/export/logf.h | 10 |
3 files changed, 10 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 18c0ef7d17..45d974a96f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -20,7 +20,9 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ +#ifndef __PCTOOL__ #include "autoconf.h" +#endif /* symbolic names for multiple choice configurations: */ diff --git a/firmware/export/debug.h b/firmware/export/debug.h index 52b6687c6b..ce556d6418 100644 --- a/firmware/export/debug.h +++ b/firmware/export/debug.h @@ -26,7 +26,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...); #ifdef __GNUC__ /* */ -#if defined(SIMULATOR) +#if defined(SIMULATOR) && !defined(__PCTOOL__) #define DEBUGF debugf #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) #else diff --git a/firmware/export/logf.h b/firmware/export/logf.h index 4206173596..35cb7127e4 100644 --- a/firmware/export/logf.h +++ b/firmware/export/logf.h @@ -23,6 +23,7 @@ #ifdef ROCKBOX_HAS_LOGF +#ifndef __PCTOOL__ #define MAX_LOGF_LINES 1000 #define MAX_LOGF_ENTRY 30 #define MAX_LOGF_DATASIZE (MAX_LOGF_ENTRY*MAX_LOGF_LINES) @@ -30,11 +31,14 @@ extern unsigned char logfbuffer[MAX_LOGF_LINES][MAX_LOGF_ENTRY]; extern int logfindex; extern bool logfwrap; +#endif /* __PCTOOL__ */ -void logf(const char *format, ...); -#else +#define logf _logf +void _logf(const char *format, ...); + +#else /* !ROCKBOX_HAS_LOGF */ /* built without logf() support enabled */ #define logf(...) -#endif +#endif /* !ROCKBOX_HAS_LOGF */ #endif /* LOGF_H */ |