all repos — mgba @ 768aa0ddc2460bae1238af9db5d62c114fb88527

mGBA Game Boy Advance Emulator

GL: Fix FreeBSD build
Vicki Pfau vi@endrift.com
Fri, 17 May 2019 19:25:25 -0700
commit

768aa0ddc2460bae1238af9db5d62c114fb88527

parent

e928c451eb1fd41d772af907430e29e657451a98

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/sdl/gles2-sdl.csrc/platform/sdl/gles2-sdl.c

@@ -13,7 +13,7 @@

#include <mgba/core/core.h> #include <mgba/core/thread.h> -#ifndef __APPLE__ +#ifdef __linux__ #include <malloc.h> #endif

@@ -37,7 +37,7 @@

size_t size = renderer->width * renderer->height * BYTES_PER_PIXEL; #ifdef _WIN32 renderer->outputBuffer = _aligned_malloc(size, 16); -#elif !defined(__APPLE__) +#elif defined(__linux__) renderer->outputBuffer = memalign(16, size); #else posix_memalign((void**) &renderer->outputBuffer, 16, size);