summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c-writer.cc12
-rw-r--r--src/prebuilt/wasm2c.include.c2
-rw-r--r--src/wasm2c.c.tmpl2
3 files changed, 0 insertions, 16 deletions
diff --git a/src/c-writer.cc b/src/c-writer.cc
index 77eabbda..7d7f1148 100644
--- a/src/c-writer.cc
+++ b/src/c-writer.cc
@@ -301,9 +301,6 @@ static const char* s_global_symbols[] = {
"switch", "_Thread_local", "typedef", "union", "unsigned", "void",
"volatile", "while",
- // assert.h
- "assert", "static_assert",
-
// math.h
"abs", "acos", "acosh", "asin", "asinh", "atan", "atan2", "atanh", "cbrt",
"ceil", "copysign", "cos", "cosh", "double_t", "erf", "erfc", "exp", "exp2",
@@ -341,15 +338,6 @@ static const char* s_global_symbols[] = {
"UINTMAX_MAX", "uintmax_t", "UINTPTR_MAX", "uintptr_t", "UNT8_C",
"WCHAR_MAX", "WCHAR_MIN", "WINT_MAX", "WINT_MIN",
- // stdlib.h
- "abort", "abs", "atexit", "atof", "atoi", "atol", "atoll", "at_quick_exit",
- "bsearch", "calloc", "div", "div_t", "exit", "_Exit", "EXIT_FAILURE",
- "EXIT_SUCCESS", "free", "getenv", "labs", "ldiv", "ldiv_t", "llabs",
- "lldiv", "lldiv_t", "malloc", "MB_CUR_MAX", "mblen", "mbstowcs", "mbtowc",
- "qsort", "quick_exit", "rand", "RAND_MAX", "realloc", "size_t", "srand",
- "strtod", "strtof", "strtol", "strtold", "strtoll", "strtoul", "strtoull",
- "system", "wcstombs", "wctomb",
-
// string.h
"memchr", "memcmp", "memcpy", "memmove", "memset", "NULL", "size_t",
"strcat", "strchr", "strcmp", "strcoll", "strcpy", "strcspn", "strerror",
diff --git a/src/prebuilt/wasm2c.include.c b/src/prebuilt/wasm2c.include.c
index f970cd74..b14cc435 100644
--- a/src/prebuilt/wasm2c.include.c
+++ b/src/prebuilt/wasm2c.include.c
@@ -1,8 +1,6 @@
/* Generated from 'wasm2c.c.tmpl' by wasm2c_tmpl.py, do not edit! */
const char SECTION_NAME(includes)[] =
-"#include <assert.h>\n"
"#include <math.h>\n"
-"#include <stdlib.h>\n"
"#include <string.h>\n"
;
diff --git a/src/wasm2c.c.tmpl b/src/wasm2c.c.tmpl
index baf8bd84..2d188c77 100644
--- a/src/wasm2c.c.tmpl
+++ b/src/wasm2c.c.tmpl
@@ -1,7 +1,5 @@
%%includes
-#include <assert.h>
#include <math.h>
-#include <stdlib.h>
#include <string.h>
%%declarations
#define UNLIKELY(x) __builtin_expect(!!(x), 0)