mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
(PSL1GHT/Switch) Fix warnings
This commit is contained in:
parent
9af17b633e
commit
cd28d5ec8a
@ -68,10 +68,12 @@ SYS_PROCESS_PARAM(1001, 0x100000)
|
|||||||
SYS_PROCESS_PARAM(1001, 0x200000)
|
SYS_PROCESS_PARAM(1001, 0x200000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __PSL1GHT__
|
||||||
#ifdef HAVE_MULTIMAN
|
#ifdef HAVE_MULTIMAN
|
||||||
#define MULTIMAN_SELF_FILE "/dev_hdd0/game/BLES80608/USRDIR/RELOAD.SELF"
|
#define MULTIMAN_SELF_FILE "/dev_hdd0/game/BLES80608/USRDIR/RELOAD.SELF"
|
||||||
static bool multiman_detected = false;
|
static bool multiman_detected = false;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MEMINFO
|
#ifdef HAVE_MEMINFO
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -115,7 +115,6 @@ static void switch_font_render_line(
|
|||||||
float scale, const unsigned int color, float pos_x,
|
float scale, const unsigned int color, float pos_x,
|
||||||
float pos_y, unsigned text_align)
|
float pos_y, unsigned text_align)
|
||||||
{
|
{
|
||||||
const struct font_glyph* glyph_q = NULL;
|
|
||||||
int delta_x = 0;
|
int delta_x = 0;
|
||||||
int delta_y = 0;
|
int delta_y = 0;
|
||||||
unsigned fb_width = sw->vp.full_width;
|
unsigned fb_width = sw->vp.full_width;
|
||||||
|
@ -683,18 +683,38 @@ extern int audioAddData(uint32_t portNum, float *data,
|
|||||||
#define FS_TYPE_DIR 1
|
#define FS_TYPE_DIR 1
|
||||||
#ifdef __PSL1GHT__
|
#ifdef __PSL1GHT__
|
||||||
#include <lv2/sysfs.h>
|
#include <lv2/sysfs.h>
|
||||||
|
#ifndef O_RDONLY
|
||||||
#define O_RDONLY SYS_O_RDONLY
|
#define O_RDONLY SYS_O_RDONLY
|
||||||
|
#endif
|
||||||
|
#ifndef O_WRONLY
|
||||||
#define O_WRONLY SYS_O_WRONLY
|
#define O_WRONLY SYS_O_WRONLY
|
||||||
|
#endif
|
||||||
|
#ifndef O_CREAT
|
||||||
#define O_CREAT SYS_O_CREAT
|
#define O_CREAT SYS_O_CREAT
|
||||||
|
#endif
|
||||||
|
#ifndef O_TRUNC
|
||||||
#define O_TRUNC SYS_O_TRUNC
|
#define O_TRUNC SYS_O_TRUNC
|
||||||
|
#endif
|
||||||
|
#ifndef O_RDWR
|
||||||
#define O_RDWR SYS_O_RDWR
|
#define O_RDWR SYS_O_RDWR
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <cell/cell_fs.h>
|
#include <cell/cell_fs.h>
|
||||||
|
#ifndef O_RDONLY
|
||||||
#define O_RDONLY CELL_FS_O_RDONLY
|
#define O_RDONLY CELL_FS_O_RDONLY
|
||||||
|
#endif
|
||||||
|
#ifndef O_WRONLY
|
||||||
#define O_WRONLY CELL_FS_O_WRONLY
|
#define O_WRONLY CELL_FS_O_WRONLY
|
||||||
|
#endif
|
||||||
|
#ifndef O_CREAT
|
||||||
#define O_CREAT CELL_FS_O_CREAT
|
#define O_CREAT CELL_FS_O_CREAT
|
||||||
|
#endif
|
||||||
|
#ifndef O_TRUNC
|
||||||
#define O_TRUNC CELL_FS_O_TRUNC
|
#define O_TRUNC CELL_FS_O_TRUNC
|
||||||
|
#endif
|
||||||
|
#ifndef O_RDWR
|
||||||
#define O_RDWR CELL_FS_O_RDWR
|
#define O_RDWR CELL_FS_O_RDWR
|
||||||
|
#endif
|
||||||
#define sysFsStat cellFsStat
|
#define sysFsStat cellFsStat
|
||||||
#define sysFSStat CellFsStat
|
#define sysFSStat CellFsStat
|
||||||
#define sysFSDirent CellFsDirent
|
#define sysFSDirent CellFsDirent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user