Do not include funcs.h on the generated funcs

This commit is contained in:
angie 2024-05-14 14:42:26 -04:00
parent 0d22dfa21f
commit c58787c148
2 changed files with 0 additions and 5 deletions

View file

@ -1300,14 +1300,10 @@ int main(int argc, char** argv) {
std::ofstream func_header_file{ config.output_func_path / "funcs.h" };
fmt::print(func_header_file,
"#ifndef __RECOMPED_FUNCS_H__\n"
"#define __RECOMPED_FUNCS_H__\n"
"#include \"recomp.h\"\n"
"\n"
"#ifdef __cplusplus\n"
"extern \"C\" {{\n"
"#endif\n"
"\n"
);
std::vector<std::vector<uint32_t>> static_funcs_by_section{ context.sections.size() };

View file

@ -1067,7 +1067,6 @@ bool RecompPort::recompile_function(const RecompPort::Context& context, const Re
// Write the file header
fmt::print(output_file,
"#include \"recomp.h\"\n"
"#include \"funcs.h\"\n"
"#include \"disable_warnings.h\"\n"
"\n");
}