From c6e5f421e2738b6005f6c3da6700b1343214f7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 9 Jun 2021 19:51:18 +0800 Subject: Add support for Emscripten --- icclient/typedefs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 icclient/typedefs.h (limited to 'icclient/typedefs.h') 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 +typedef void (*icclient_handler)(emscripten_fetch_t *); +#else +typedef size_t (*icclient_handler)(void *, size_t, size_t, void *); +#endif + +#endif -- cgit v1.2.3