forked from len0rd/rockbox
libspeex: let DEBUGF work correctly for both core and codec builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15677 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c31818ccf0
commit
371ebe1160
1 changed files with 4 additions and 5 deletions
|
|
@ -24,22 +24,21 @@
|
||||||
|
|
||||||
#include "../codec.h"
|
#include "../codec.h"
|
||||||
#include "../lib/codeclib.h"
|
#include "../lib/codeclib.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
#if !defined(ROCKBOX_VOICE_CODEC)
|
||||||
|
|
||||||
#if defined(DEBUG) || defined(SIMULATOR)
|
#if defined(DEBUG) || defined(SIMULATOR)
|
||||||
#undef DEBUGF
|
#undef DEBUGF
|
||||||
#define DEBUGF ci->debugf
|
#define DEBUGF ci->debugf
|
||||||
#else
|
|
||||||
#define DEBUGF(...)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ROCKBOX_HAS_LOGF
|
#ifdef ROCKBOX_HAS_LOGF
|
||||||
#undef LOGF
|
#undef LOGF
|
||||||
#define LOGF ci->logf
|
#define LOGF ci->logf
|
||||||
#else
|
|
||||||
#define LOGF(...)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern struct codec_api* ci;
|
#endif /* ROCKBOX_VOICE_CODEC */
|
||||||
|
|
||||||
#define OVERRIDE_SPEEX_ALLOC 1
|
#define OVERRIDE_SPEEX_ALLOC 1
|
||||||
static inline void *speex_alloc (int size)
|
static inline void *speex_alloc (int size)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue