Update libretro-common

This commit is contained in:
twinaphex
2018-04-19 09:20:24 +02:00
parent 752b0e531a
commit 01ac02468c
11 changed files with 1065 additions and 450 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ static unsigned char co_swap_function[] = {
#include <windows.h>
void co_init(void)
static void co_init(void)
{
DWORD old_privileges;
VirtualProtect(co_swap_function,
@@ -105,7 +105,7 @@ static unsigned char co_swap_function[] = {
#include <unistd.h>
#include <sys/mman.h>
void co_init(void)
static void co_init(void)
{
unsigned long long addr = (unsigned long long)co_swap_function;
unsigned long long base = addr - (addr % sysconf(_SC_PAGESIZE));
@@ -113,7 +113,7 @@ void co_init(void)
mprotect((void*)base, size, PROT_READ | PROT_WRITE | PROT_EXEC);
}
#else
void co_init(void) {}
static void co_init(void) {}
#endif
#endif