X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=329c5bcc7241159e3d738d15d7d976558de3b8c0;hb=8e224f98516144722076e79b372c67ba7ded7577;hp=177b1500b8226314856dcfe50affeb083d319438;hpb=78bb116f38e967174ce6255a51c9d19805e8fcb2;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 177b1500..329c5bcc 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -3039,7 +3039,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) && !defined(__SWITCH__) +#elif defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) && HAVE_POSIX_MEMALIGN if (posix_memalign(&vout_buf, 16, VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2) != 0) vout_buf = (void *) 0; #else