Skip to content
Snippets Groups Projects
Commit 7a2225a8 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not output default headers

parent 8a5fd250
No related branches found
No related tags found
No related merge requests found
......@@ -76,19 +76,20 @@ impl Bindings {
}
out.new_line_if_not_start();
if self.config.language == Language::C {
out.write("#include <stdint.h>");
out.new_line();
out.write("#include <stdlib.h>");
out.new_line();
out.write("#include <stdbool.h>");
out.new_line();
} else {
out.write("#include <cstdint>");
out.new_line();
out.write("#include <cstdlib>");
out.new_line();
}
// Disabled to allow generation of stdint.h, stdlib.h, and stdbool.h
// if self.config.language == Language::C {
// out.write("#include <stdint.h>");
// out.new_line();
// out.write("#include <stdlib.h>");
// out.new_line();
// out.write("#include <stdbool.h>");
// out.new_line();
// } else {
// out.write("#include <cstdint>");
// out.new_line();
// out.write("#include <cstdlib>");
// out.new_line();
// }
for include in &self.config.sys_includes {
write!(out, "#include <{}>", include);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment