cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1
27
#ifndef __CWIST_SYS_PLATFORM_H__
28
#define __CWIST_SYS_PLATFORM_H__
29
30
#include <
cwist/sys/wasi.h
>
31
32
#if !defined(CWIST_BAREMETAL) && defined(__ARM_EABI__) && !defined(__linux__) && \
33
!defined(__unix__) && !defined(__APPLE__) && !defined(_WIN32)
34
#define CWIST_BAREMETAL 1
35
#endif
36
37
#if !defined(__EMSCRIPTEN__) && !defined(__wasi__) && !defined(CWIST_BAREMETAL)
38
#define CWIST_PLATFORM_HOSTED 1
39
#endif
40
41
#if defined(__wasi__) || defined(CWIST_BAREMETAL)
42
#define CWIST_PLATFORM_NO_PROC 1
43
#endif
44
45
#if defined(CWIST_WASI_NO_SOCKETS) || defined(CWIST_BAREMETAL)
46
#define CWIST_PLATFORM_NO_SOCKETS 1
47
#endif
48
49
#endif
/* __CWIST_SYS_PLATFORM_H__ */
wasi.h
WASI target feature detection shared by all CWIST sources.
include
cwist
sys
platform.h
Generated by
1.9.8