From c58787c148c32d5e0f88e524db53d448a0065d4f Mon Sep 17 00:00:00 2001 From: angie Date: Tue, 14 May 2024 14:42:26 -0400 Subject: [PATCH] Do not include funcs.h on the generated funcs --- src/main.cpp | 4 ---- src/recompilation.cpp | 1 - 2 files changed, 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 562e260..81bc803 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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> static_funcs_by_section{ context.sections.size() }; diff --git a/src/recompilation.cpp b/src/recompilation.cpp index 87fba47..8c5bf4e 100644 --- a/src/recompilation.cpp +++ b/src/recompilation.cpp @@ -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"); }