summaryrefslogtreecommitdiff
path: root/libco/libco.c
diff options
context:
space:
mode:
authoraliaspider2014-12-08 22:56:33 +0100
committeraliaspider2014-12-08 22:56:33 +0100
commit365077772d3d8d5d479febd0388d7e74ef08d508 (patch)
tree4021590cd2176f8e9d469ab3d620338e9ed85fda /libco/libco.c
parent35e1e44a1107c73a3aaccb0eff44757c602afdac (diff)
downloadpicogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.tar.gz
picogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.tar.bz2
picogpsp-365077772d3d8d5d479febd0388d7e74ef08d508.zip
start implementing the libretro interface. (not working yet)
Diffstat (limited to 'libco/libco.c')
-rw-r--r--libco/libco.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libco/libco.c b/libco/libco.c
new file mode 100644
index 0000000..63126d3
--- /dev/null
+++ b/libco/libco.c
@@ -0,0 +1,21 @@
+/*
+ libco
+ auto-selection module
+ license: public domain
+*/
+
+#if defined(__GNUC__) && defined(__i386__) || (defined(_MSC_VER) && defined(_M_IX86))
+ #include "x86.c"
+#elif defined(__GNUC__) && defined(__amd64__) || (defined(_MSC_VER) && defined(_M_AMD64))
+ #include "amd64.c"
+#elif defined(__GNUC__) && defined(_ARCH_PPC)
+ #include "ppc.c"
+#elif defined(__GNUC__) && (defined(__ARM_EABI__) || defined(__arm__))
+ #include "armeabi.c"
+#elif defined(__GNUC__)
+ #include "sjlj.c"
+#elif defined(_MSC_VER)
+ #include "fiber.c"
+#else
+ #error "libco: unsupported processor, compiler or operating system"
+#endif