summaryrefslogtreecommitdiff
path: root/icclient/typedefs.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:51:18 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:51:18 +0800
commitc6e5f421e2738b6005f6c3da6700b1343214f7e5 (patch)
treef4c45010fac52e4c30610ddd4640fb5b36a602a8 /icclient/typedefs.h
parenta0e54cb948c9862936e16eedd2a2015be05408c8 (diff)
Add support for Emscripten
Diffstat (limited to 'icclient/typedefs.h')
-rw-r--r--icclient/typedefs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/icclient/typedefs.h b/icclient/typedefs.h
new file mode 100644
index 0000000..1b2f176
--- /dev/null
+++ b/icclient/typedefs.h
@@ -0,0 +1,11 @@
+#ifndef ICCLIENT_TYPEDEFS_H
+#define ICCLIENT_TYPEDEFS_H
+
+#ifdef __EMSCRIPTEN__
+#include <emscripten/fetch.h>
+typedef void (*icclient_handler)(emscripten_fetch_t *);
+#else
+typedef size_t (*icclient_handler)(void *, size_t, size_t, void *);
+#endif
+
+#endif