summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/cothread/libco.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cothread/libco.c')
-rw-r--r--src/lib/cothread/libco.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/cothread/libco.c b/src/lib/cothread/libco.c
new file mode 100644
index 00000000000..5567626330d
--- /dev/null
+++ b/src/lib/cothread/libco.c
@@ -0,0 +1,23 @@
+/*
+ libco
+ auto-selection module
+ license: public domain
+*/
+
+#if defined(__GNUC__) && defined(__i386__)
+ #include "x86.c"
+#elif defined(__GNUC__) && defined(__amd64__)
+ #include "amd64.c"
+#elif defined(__GNUC__) && defined(_ARCH_PPC)
+ #include "ppc.c"
+#elif defined(__GNUC__)
+ #include "sjlj.c"
+#elif defined(_MSC_VER) && defined(_M_IX86)
+ #include "x86.c"
+#elif defined(_MSC_VER) && defined(_M_AMD64)
+ #include "amd64.c"
+#elif defined(_MSC_VER)
+ #include "fiber.c"
+#else
+ #error "libco: unsupported processor, compiler or operating system"
+#endif