diff options
| -rw-r--r-- | builtins/integers.h | 1 | ||||
| -rw-r--r-- | builtins/tomo.h | 7 | ||||
| -rw-r--r-- | tomo.c | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/builtins/integers.h b/builtins/integers.h index 707bc5c8..2e8f6721 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -5,6 +5,7 @@ #include <gc/cord.h> #include <stdbool.h> #include <stdint.h> +#include <stdlib.h> #include "datatypes.h" #include "types.h" diff --git a/builtins/tomo.h b/builtins/tomo.h index ded82945..17439b59 100644 --- a/builtins/tomo.h +++ b/builtins/tomo.h @@ -3,17 +3,10 @@ // All of the different builtin modules can be included by including this one // import -#include <err.h> #include <gc.h> #include <gc/cord.h> -#include <math.h> -#include <signal.h> #include <stdbool.h> #include <stdint.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> #include "array.h" #include "bool.h" @@ -318,7 +318,9 @@ int compile_executable(const char *filename, const char *object_files, module_co binding_t *main_binding = get_binding(module_code->env, "main"); CORD program = CORD_all( + "#include <stdlib.h>\n" "#include <tomo/tomo.h>\n" + "#include <unistd.h>\n" "#include \"", filename, ".h\"\n" "\n" "int main(int argc, char *argv[]) {\n" |
