From 5230ee879b633ce89af4b8d34fe60874d96c04b2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 11:42:52 +0000 Subject: Extract std.h --- runtime/src/shed.h | 10 +--------- runtime/src/std.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 runtime/src/std.h (limited to 'runtime/src') diff --git a/runtime/src/shed.h b/runtime/src/shed.h index 3a9d3ff9..b8ff14a0 100644 --- a/runtime/src/shed.h +++ b/runtime/src/shed.h @@ -1,15 +1,7 @@ #ifndef SHED_H #define SHED_H -#include - -#ifdef __WASM__ -typedef uint32_t size_t; -typedef int32_t ssize_t; -#define NULL 0 -#else -#include -#endif +#include "./std.h" #ifdef __WASM__ typedef uint32_t PatioInt; diff --git a/runtime/src/std.h b/runtime/src/std.h new file mode 100644 index 00000000..39ea6046 --- /dev/null +++ b/runtime/src/std.h @@ -0,0 +1,14 @@ +#ifndef SHED_STD_H +#define SHED_STD_H + +#include + +#ifdef __WASM__ +typedef uint32_t size_t; +typedef int32_t ssize_t; +#define NULL 0 +#else +#include +#endif + +#endif -- cgit v1.2.3