From b737dcbad5ae0fde2780f44c351fd342aa91d88b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 3 May 2011 11:56:17 +0200 Subject: PSP: Fix various forbidden symbol clashes --- backends/platform/psp/mp3.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'backends/platform/psp/mp3.cpp') diff --git a/backends/platform/psp/mp3.cpp b/backends/platform/psp/mp3.cpp index 0faeacb2f2..fd686513af 100644 --- a/backends/platform/psp/mp3.cpp +++ b/backends/platform/psp/mp3.cpp @@ -23,6 +23,19 @@ * */ +// Disable printf override in common/forbidden.h to avoid +// clashes with pspdebug.h from the PSP SDK. +// That header file uses +// __attribute__((format(printf,1,2))); +// which gets messed up by our override mechanism; this could +// be avoided by either changing the PSP SDK to use the equally +// legal and valid +// __attribute__((format(__printf__,1,2))); +// or by refining our printf override to use a varadic macro +// (which then wouldn't be portable, though). +// Anyway, for now we just disable the printf override globally +// for the PSP port +#define FORBIDDEN_SYMBOL_EXCEPTION_printf #include "common/debug.h" #include "common/stream.h" -- cgit v1.2.3