aboutsummaryrefslogtreecommitdiff
path: root/frontend/libretro.c
diff options
context:
space:
mode:
authornegativeExponent2019-12-17 01:10:56 +0800
committernegativeExponent2019-12-17 01:10:56 +0800
commit12367ad02622ba0e6457a7bea7b859bcf85ecb46 (patch)
tree1e47ca59350232bab9dc1bf5582b708dddea7fd1 /frontend/libretro.c
parenteb6943ee04b0f30a6f1cebfe399a94bacd1dfb45 (diff)
downloadpcsx_rearmed-12367ad02622ba0e6457a7bea7b859bcf85ecb46.tar.gz
pcsx_rearmed-12367ad02622ba0e6457a7bea7b859bcf85ecb46.tar.bz2
pcsx_rearmed-12367ad02622ba0e6457a7bea7b859bcf85ecb46.zip
Update
Diffstat (limited to 'frontend/libretro.c')
-rw-r--r--frontend/libretro.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 785213b..a7c264e 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -15,6 +15,10 @@
#include <sys/syscall.h>
#endif
+#ifdef SWITCH
+#include <switch.h>
+#endif
+
#include "../libpcsxcore/misc.h"
#include "../libpcsxcore/psxcounters.h"
#include "../libpcsxcore/psxmem_map.h"
@@ -2326,7 +2330,7 @@ void retro_init(void)
#ifdef _3DS
vout_buf = linearMemAlign(VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2, 0x80);
-#elif defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) && !defined(VITA)
+#elif defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) && !defined(VITA) && !defined(__SWITCH__)
posix_memalign(&vout_buf, 16, VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);
#else
vout_buf = malloc(VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2);