mirror of https://github.com/bsnes-emu/bsnes.git
v106.232
Correct merge issue with libco Don't invoke uname on Windows targets [Alcaro]
This commit is contained in:
parent
0d6a02168b
commit
1c7e6c58c3
|
@ -5,8 +5,10 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
#ifdef LIBCO_MPROTECT
|
||||||
#include <sys/mman.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
6
amd64.c
6
amd64.c
|
@ -98,8 +98,10 @@ static void (*co_swap)(cothread_t, cothread_t) = 0;
|
||||||
0xff, 0xe0, /* jmp rax */
|
0xff, 0xe0, /* jmp rax */
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <unistd.h>
|
#ifdef LIBCO_MPROTECT
|
||||||
#include <sys/mman.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void co_init() {
|
static void co_init() {
|
||||||
#ifdef LIBCO_MPROTECT
|
#ifdef LIBCO_MPROTECT
|
||||||
|
|
6
arm.c
6
arm.c
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#ifdef LIBCO_MPROTECT
|
||||||
#include <sys/mman.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
2
ppc.c
2
ppc.c
|
@ -8,7 +8,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if LIBCO_MPROTECT
|
#ifdef LIBCO_MPROTECT
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
6
x86.c
6
x86.c
|
@ -52,8 +52,10 @@ static const unsigned char co_swap_function[4096] = {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#ifdef LIBCO_MPROTECT
|
||||||
#include <sys/mman.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void co_init() {
|
static void co_init() {
|
||||||
#ifdef LIBCO_MPROTECT
|
#ifdef LIBCO_MPROTECT
|
||||||
|
|
Loading…
Reference in New Issue