diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-25 13:04:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-25 13:04:59 -0400 |
| commit | 9d744b3e6ef947fe75ed4c145c56eec74b329d7d (patch) | |
| tree | d3e255b981a25ce5088c957b20717989d521f3e5 /tomo.c | |
| parent | 670c90cef45f96cfbea4406c74a4eed0074f539e (diff) | |
Include tweak
Diffstat (limited to 'tomo.c')
| -rw-r--r-- | tomo.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -270,7 +270,10 @@ int transpile(const char *filename, bool force_retranspile, module_code_t *modul FILE *c_file = fopen(c_filename, "w"); if (!c_file) errx(1, "Couldn't open file: %s", c_filename); - CORD_put(CORD_all("#include \"", module_code->module_name, ".tm.h\"\n\n", module_code->c_file), c_file); + CORD_put(CORD_all( + "#include <tomo/tomo.h>\n" + "#include \"", module_code->module_name, ".tm.h\"\n\n", + module_code->c_file), c_file); if (fclose(c_file)) errx(1, "Failed to close file: %s", c_filename); if (verbose) |
