aboutsummaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-27 23:26:14 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-27 23:26:14 +0000
commit6004d0f9bd2f986192fa11a6d1983339ae92d9b0 (patch)
treef5c72e08a28451bfc67fc06b31aab11ba49c8d74 /runtime/src
parent618f4b35a852f8282c395675ab9dac9756b72c22 (diff)
Use builtin wasm macros
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/alloc.h2
-rw-r--r--runtime/src/namespaces/Shed/Builtins.c2
-rw-r--r--runtime/src/patio/exceptions.c2
-rw-r--r--runtime/src/patio/patio.h2
-rw-r--r--runtime/src/std/unistd.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/runtime/src/alloc.h b/runtime/src/alloc.h
index 5e92573f..07a14436 100644
--- a/runtime/src/alloc.h
+++ b/runtime/src/alloc.h
@@ -3,7 +3,7 @@
#include "./std/unistd.h"
-#ifdef __WASM__
+#ifdef __wasm__
void* malloc(unsigned long);
void free(void*);
diff --git a/runtime/src/namespaces/Shed/Builtins.c b/runtime/src/namespaces/Shed/Builtins.c
index aa09911c..142a1317 100644
--- a/runtime/src/namespaces/Shed/Builtins.c
+++ b/runtime/src/namespaces/Shed/Builtins.c
@@ -2,7 +2,7 @@
#include "../../shed.h"
-#ifdef __WASM__
+#ifdef __wasm__
typedef struct __wasi_ciovec_t {
uint8_t * buf;
diff --git a/runtime/src/patio/exceptions.c b/runtime/src/patio/exceptions.c
index e465b4f6..23685d8c 100644
--- a/runtime/src/patio/exceptions.c
+++ b/runtime/src/patio/exceptions.c
@@ -1,4 +1,4 @@
-#ifndef __WASM__
+#ifndef __wasm__
#include <setjmp.h>
#include <stdint.h>
diff --git a/runtime/src/patio/patio.h b/runtime/src/patio/patio.h
index f4bde0dd..fe9f9c05 100644
--- a/runtime/src/patio/patio.h
+++ b/runtime/src/patio/patio.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-#ifdef __WASM32__
+#ifdef __wasm32__
typedef uint32_t PatioInt;
#else
typedef uint64_t PatioInt;
diff --git a/runtime/src/std/unistd.h b/runtime/src/std/unistd.h
index 6a761e6f..8f4dc71a 100644
--- a/runtime/src/std/unistd.h
+++ b/runtime/src/std/unistd.h
@@ -1,7 +1,7 @@
#ifndef SHED_STD_UNISTD_H
#define SHED_STD_UNISTD_H
-#ifdef __WASM__
+#ifdef __wasm__
typedef unsigned long size_t;
typedef long ssize_t;
#ifndef NULL