mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
PSP: Fix various forbidden symbol clashes
This commit is contained in:
parent
d67e450f7a
commit
b737dcbad5
@ -23,6 +23,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
// 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 <pspgu.h>
|
||||
#include <pspkerneltypes.h>
|
||||
#include <pspdisplay.h>
|
||||
|
@ -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"
|
||||
|
@ -23,6 +23,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
// 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
|
||||
|
||||
#define USERSPACE_ONLY //don't use kernel mode features
|
||||
|
||||
#ifndef USERSPACE_ONLY
|
||||
|
@ -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 <pspkernel.h>
|
||||
#include <pspdebug.h>
|
||||
|
Loading…
Reference in New Issue
Block a user