summaryrefslogtreecommitdiff
path: root/icclient/typedefs.h
blob: 2b0ec21c735241fee201f5551a0ffffca6afa66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ICCLIENT_TYPEDEFS_H
#define ICCLIENT_TYPEDEFS_H

#ifdef __cplusplus
#include <cstddef>
#endif
#ifdef __EMSCRIPTEN__
#include <emscripten/fetch.h>
typedef emscripten_fetch_t icclient_fetch_t;
#else
typedef struct {
	void *userData;
	char *data;
	size_t numBytes;
} icclient_fetch_t;
#endif

#endif