update vibration handling
[pcsx_rearmed.git] / deps / libretro-common / libco / libco.c
1 /*
2   libco
3   auto-selection module
4   license: public domain
5 */
6
7 #ifdef __GENODE__
8 void *genode_alloc_secondary_stack(unsigned long stack_size);
9 void genode_free_secondary_stack(void *stack);
10 #endif
11
12 #if defined _MSC_VER
13   #include <Windows.h>
14   #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
15     #include "fiber.c"
16   #elif defined _M_IX86
17     #include "x86.c"
18   #elif defined _M_AMD64
19     #include "amd64.c"
20   #else
21     #include "fiber.c"
22   #endif
23 #elif defined __GNUC__
24   #if defined __i386__
25     #include "x86.c"
26   #elif defined __amd64__
27     #include "amd64.c"
28   #elif defined _ARCH_PPC
29     #include "ppc.c"
30   #elif defined(__aarch64__)
31     #include "aarch64.c"
32   #elif defined(PS2)
33     #include "ps2.c"
34   #elif defined(PSP)
35     #include "psp1.c"
36   #elif defined VITA
37     #include "scefiber.c"
38   #elif defined(__ARM_EABI__) || defined(__arm__)
39     #include "armeabi.c"
40   #else
41     #include "sjlj.c"
42   #endif
43 #else
44   #error "libco: unsupported processor, compiler or operating system"
45 #endif